Cover by Dylan James

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

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

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required