Advanced Formatters
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Component created
Component changed
Component body
A collection of esoteric formatters that extend field displays in interesting ways:
Advanced_formatters
These are almost sure to expose various security issues if used incautiously. Do not provide these types of input to untrusted roles.
- text
-
- Raw
- Just drop in the text with no wrappers at all
- file
-
- Inline content
- Presuming it's text or HTML snippet, just print the content of the file
- XML tag
- Configure a tag of some type that uses this file path as a src. Could be used for embed preambles.
- link
-
- Inline content
- Presuming it's text or HTML snippet, just print the content of the url
- XML tag
- Configure a tag of some type that uses this url path as a src
Additional module: More Classes
Extend field formatter settings to add classes to more elements.
Adds classes to the element being rendered (not just the wrapper).
Adds a custom field class to the field's classes_array according to the field formatter settings.
Help documentation can be viewed (raw) in the repository


First implementation designed to apply to thememe_image_formatter().
Results may vary with anything else, but if they use conventional drupal render arrays, there may be a chance.
It also works helpfully on the iframe renderer for link module.
Credits
This project shares some history with XSL formatter and provides similar usage.
Some of the renderers here are designed to be used, not with HTML page rendering so much, but with alternate methods, such as producing XML tags or values for insertion into RSS, or views data export, or plugin parameters for embeds.
Other Modules
- Field Formatter Settings and its group of extras can be very handy in this space for tweaking the display of certain fields.
- Display Suite is recommended for taking over the rendering of your fields, choosing tags, attributes, classes and wrapper elements.
