Installing more field types

Drupal provides many useful field types which can be used for building custom content types such as Image, Integer, Term reference, and File. However, it doesn't end there. In this recipe we will add a new file type, Link, to the site. Following this we will add a Link field to the Basic page content type.

Getting ready

For this recipe you need to install and enable the Link module: http://drupal.org/project/link.

How to do it...

In this recipe we will first add a Link field to the Basic page content type. We will then create a new Basic page and add two sample links to it:

  1. Select Structure from the admin menu, then select Content types.
  2. Select Manage fields for Basic page.
  3. In the Add new field section, enter Related links ...

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.