Download & Extend

Field Formatter Class

Example of HTML markup produced by Field formatter class module
Field formatter class - module settings

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

Field formatter settings API

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

Version Downloads Date Links
7.x-1.0 tar.gz (7.93 KB) | zip (8.68 KB) 2012-May-07 Notes

Project Information


Maintainers for Field Formatter Class

  • andrewmacpherson - 2 commits
    last: 3 weeks ago, first: 4 weeks ago
  • mfer - 3 commits
    last: 1 year ago, first: 1 year ago

Issues for Field Formatter Class

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports