Place microdata attributes in field formatter

Last updated on
30 April 2025

You are browsing documentation for an older version of Drupal, which is not supported any longer, and the information may not be correct. See current documentation for Contributed modules

For many fields and field properties, the field formatter output must be altered to include the microdata properties.

Automatically placed

If a field has a property_type of 'text', 'integer', or 'decimal', attribute placement will be handled automatically by microdata module. The itemprop attribute is added to the field wrapper.

The resulting HTML looks like this:

<div class="field-item even" itemprop="jobTitle">Drupal Developer</div>

Help improve this page

Page status: Not set

You can: