O'Reilly logo

Drupal 7 Fields/CCK by Dave Poon

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

Adding fields to content types

There are usually cases in which we need to add a field to content types; site administrators can enter data to the custom fields for a specific purpose.

Now, we go back to our cooking website, we will add more custom fields to the Recipe content type and the Cooking Tip content type, because our clients want to have a field to enter notes for the recipes and the cooking tips. Additionally they would like to have another field to enter the source of recipes and cooking tips, so authors can enter where they found the recipes or tips.

Adding text fields using the text module

In this case, the text module can perfectly handle this requirement. Authors can enter text into a text area field that contains a note for a recipe ...

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