formatter_suite
Formatter Suite provides a suite of field formatters to help present numbers, dates, times, text, links, entity references, files, and images. This module contains the following 18 formatters , organized by the field types they support.
-
Date & time
- Date & time list
- Custom date & time list
- Time ago list
-
Email
- General email address
-
Entity reference
- General entity reference
- General user reference
- Rendered entity list
-
Files
- General file link
-
Images
- General image
- Image with embeded data URL
-
Links
- General link
-
Numbers (Decimal, Float, and Integer)
- Bytes with KB/MB/GB suffix
- General number
- General number with bar indicator
- General number with min/max
-
Text (String long, Text, Text long, and Text with Summary)
- Text with expand/collapse buttons
-
Timestamp
- Timestamp list
- Time ago list
Uses
Web site adminstrators may use the Formatter Suite module, and its submodules, along with the core Field UI and View UI modules, to configure the way in which field data is presented.
Collectively, the Formatter Suite modules offer a rich set of features that go beyond core formatters to provide detailed control over number notation styles, email address links, dates and times, images, files, and more. Special formatters add graphic indicators, large text collapse & expand, and more.
Formatter Suite module may also be configured for use with the FolderShare module which supports file sharing on Drupal natively.
Requirements
- PHP 8.2.x or PHP 8.3.x
- Drupal 10+
Documentation
- After installation, visit /admin/help/formatter_suite for detailed help, this page is only available when Core's help module is enabled.
- Alternatively, review slightly old guide
Installation
Install via downloading tar ball or drush or with composer.
Support this module
Please add a back link from your site to DOI:10.5281/zenodo.2578252
See other ways to cite this work.
Demo
Try it yourself by launching a sandbox site at simplytest.me then follow these steps
- Create a new content type, lets call it 'Formatters'
- Add any of the above fields for which a formatter is available
- Under Manage Display for the 'Formatters' content type, change the fields formatter from default to on available from Formatter Suite.
- Add a new 'Formatters' entity, fill all the fields
- View the newly added entity that should display the fields with new formatters.