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

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

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