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 — adding Microdata mappings for Recipe number_integer fields

Now that the Microdata supports the number_integer fields, we will update all of our Recipe content type number_integer fields with a Microdata mapping.

  1. Now, go back to the field settings page for the cookTime field, and you will see that we now have the Field property(s) input. So, go ahead and enter cookTime in that field.
    Time for action — adding Microdata mappings for Recipe number_integer fields
  2. Now, once again we will navigate to a Recipe content item page, and view the HTML source. The cookTime field will look as follows:
    <div class="field field-name-field-cooktime field-type-number- integer field-label-above"> <div class="field-label">cookTime:&nbsp;</div> ...

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