O'Reilly logo

Drupal 7 Development by Example Beginner's Guide by Kurt Madel

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

Time for action — updating the Recipe content type to use the NutritionInformation field

Now, let's put our new module to use and add our new compound field to our Recipe content type, using our new custom nutritioninfo field for the NutrionInformation property of the http://schema.org/Recipe definition.

  1. Go to the Manage Fields configuration page for the Recipe content type: http://localhost/d7dev/#overlay=admin/structure/types/ manage/recipe/fields.
  2. Now, add a new field with the following settings — label: nutrition, name: field_nutrition_information, type: Nutrition Information, widget: Nutrition Information form (the default), and click on the Save button.
  3. There is nothing to set for Field Settings, so just click on the Save field settings button. ...

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