O'Reilly logo

Drupal 7 Theming Cookbook by Karthik Kumar

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 new node type

In this recipe, we will be adding a new node type and customizing it using Fields. As an example, we will be creating a type named company to hold information about a company along with details such as its address, telephone number, e-mail address, and so on.

Getting ready

It is assumed that the Field, Field UI and, at the very least, the Text module have all been enabled. The Field UI module is required for the field management interface to be accessible.

How to do it...

The Field API integrates into Drupal's content management pages and can be accessed by navigating to admin/structure/types [Home | Administration | Structure | Content types]. Perform the following steps to add the new node type:

  1. Click on the Add content ...

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