Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
🇺🇦 |
This module is maintained by Ukrainian developers. Please consider supporting Ukraine in a fight for their freedom and safety of Europe. |
The Custom Formatters module allows users to easily create custom Field Formatters without the need to write a custom module. Custom Formatters can then be exported as CTools Exportables, Features or Drupal API Field Formatters.
Â
Features:
- Pluggable editor/renderer engines:
-
Formatter preset
Create simple formatters from existing formatters with preset formatter settings. -
HTML + Tokens
A HTML based editor with Token support. -
PHP
A PHP based editor with support for multiple fields and multiple values. -
Twig
A Twig based editor provided by the Twig filter module.
-
Formatter preset
- Supports for all fieldable entities, including but not limited to:
- Drupal core - Comment, Node, Taxonomy term and User entities.
- Field collection module - Field-collection item entity.
- Media module - Media entity.
- Exportable as:
- Drupal API formatter via:
- Custom Formatters export interface.
- CTools exportable via:
- Custom Formatters export interface.
- CTools Bulk Export module.
- Features module.
- Drupal API formatter via:
- Live preview using real entities or Devel Generate.
- Integrates with:
-
Coder Review
Review your Custom Formatter code for Drupal coding standards and more. -
Contextual links (Drupal core)
Adds a hover link for quick editing of Custom Formatters. -
Display Suite
Format Display Suite fields. -
Features
Adds dependent Custom Formatters (from Views or Content types) to Feature. -
Form Builder
Drag'n'Drop interface for builder Formatter Settings forms. -
Insert
Exposes Custom Formatters to the Insert module. -
Libraries API and the EditArea javascript library
Adds real-time syntax highlighting. -
Token
Adds the Token tree browser to the HTML + Tokens engine.
-
Coder Review
Â
Required Modules:
Â
Recommended Modules:
- Coder review (via Coder)
- Devel generate (via Devel)
- Entity tokens (via Entity API)
- Form Builder
- Libraries API
- Token
Â
Usage/Configuration:
Read the manual at: https://www.drupal.org/node/2514412
Â
EditArea - Real-time syntax highlighting
The EditArea javascript library adds real-time syntax highlighting, to install it follow these steps:
- Download and install the Libraries API module.
- Download the EditArea library and extract and move it into your libraries folder as 'editarea' (eg. sites/all/libraries/editarea).
Â
Project information
- Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed. - Maintenance fixes only
Considered feature-complete by its maintainers. - Module categories: Content Display, Developer Tools, Site Structure
- Ecosystem: YMCA Website Services (former Open Y) Community Edition
- 5,487 sites report using this module
- Created by Deciphered on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
4.0.0-beta1
released 17 October 2022
Works with Drupal: ^8 || ^9 || ^10
✓ Recommended by the project’s maintainer.
Install:
Development version: 4.0.x-dev updated 17 Oct 2022 at 10:15 UTC
7.x-2.4
released 8 July 2015
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-2.x-dev updated 21 Jul 2016 at 05:48 UTC