O'Reilly logo

Drupal 7 Cookbook by Dylan James

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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: http://drupal.org/project/date

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required