Using the Field Wrappers module, site administrator will be able to choose HTML wrappers for Fields. Normally the Field API uses DIV elements to wrap fields, labels and its data.
After the Field Wrappers module has been enabled, you can choose from the following default set of markup types as wrapper for your field elements:
Default Wrappers:
- - None - (removes the markup)
- DIV
- SPAN
- H1
- H2
- H3
- H4
- H5
- H6
- P
- STRONG
- EM
Other modules (or themes) can alter this list using hook_field_wrapper_elements_alter().
Note for Theme Developers:
This module uses a template overwrite for Drupals core field.tpl.php. If your module or theme uses a customised template file for fields, you should take a look at this one to make sure the wrappers are printed out correctly.
Credits:
Project information
- 616 sites report using this module
- Created by skilip on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
Development version: 7.x-1.x-dev updated 7 Jun 2011 at 12:07 UTC