Creating a more advanced content type

In Drupal, unlike in many other CMSs, it is possible to create a vast range of content types for almost any requirement. In this example, we will be creating a new content type called Job. This content type can then be used to create a job posting system for your site.

Our Job content type will consist of the following fields:

  • Title (Node module element)
  • Body (Long text and summary)
  • Salary (Text)
  • Closing date (Date)
  • Related documents (File)
  • Position type (List)

Getting ready

For this recipe you will need to install the Date module:

You will then need to enable the following features of the Date module:

  • Date
  • Date API
  • Date popup

How to do it...

Through the course of this recipe we will be ...

Get Drupal 7 Cookbook now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.