This module allows site administrators to add classes to the outer HTML wrapper for any field display.
Classes can be specified at the Manage display settings for content types, users and other entities.
Instructions
The field formatter class settings are found in the Manage display tab for content types, users, and other entities. A text box is available for each field's class, revealed by using the formatter settings edit button (Gear wheel icon) for that field.
The class is added to the outer <div> container for the field. The default Drupal field classes (e.g. "field-type-taxonomy-term-reference") remain available - this module does not remove any classes.
The accompanying screenshot images show the settings form and some example HTML output.
Dependencies
Development status
Drupal 7: FIeld formatter class is now feature-complete. Future development for D7 will be limited to bug fixes and/or security issues.
Drupal 8: There is currently an open issue to add the field formatter settings API hooks into Drupal core. See #945524: Field formatter settings hooks in core for details.
Downloads
Project Information
- Maintenance status: Actively maintained
- Development status: Under active development
- Module categories: Content Display, Fields, Theme Enhancements
- Reported installs: 30 sites currently report using this module. View usage statistics.
- Downloads: 62
- Last modified: May 14, 2012

