Module Description
Description The Inline Formatter Field module allows site builders to template and style entities with a field. This module will create a new field type called "Inline Formatter" which is a boolean. When the boolean is checked the field will render what is entered in the "HTML or Twig Format" field for the formatter fields's settings in the "Manage Display" screen of the entity. This module makes use of the ACE Editor JavaScript library for easier code editing. As the name suggests, any HTML or Twig can be entered into this field.

Two Twig variables can be used to display dynamic content. First, the entity itself accessed by the variable named by the entity type (ex 'node'), which can be used for obtaining field information or any other entity information. Second, the current user accessed by the variable 'current_user', which can be used to display personalized information or check user roles.

Use Cases
* Add a HTML or Twig to an entities display that are not part of dynamic content.
* Use as Twig templating without having to use a theme file system (using twig debug to find twig name or suggested name, create/edit name, make sure the template file doesn't cause unwanted template changes, etc).
* Have multiple displays for an entity which can be selected by the content creator.
* Add attributes around fields of an entity without using the display suite or other like modules.

Requirements This module requires Drupal core version 8, and at least 8.8.x for development in order for the tests to pass. This module requires the following module:


* Field

Installation
* Install as you would normally install a contributed Drupal module. Visit https://www.drupal.org/docs/8/extending-drupal-8/installing-drupal-8-mod... for further information.
* Set up the Inline Formatter Field settings by going to admin/config/inline_formatter_field/settings.
* Ace Editor location should be set by either entering a CDN URL or by downloading the library and entering the path to the library relative to the Drupal root.
* Font Awesome location should be set by either entering a CDN URL or by downloading the library and entering the path to the library relative to the Drupal root.
* Select the theme, mode, and extra options settings for Ace Editor.


* Add the field to the desired entity(ies).
* Edit the manage display of the entity for the inline formatter to display as desired.

Recommended Modules
* Token When enabled, token replacement patterns can be entered into the formatter field. Also, this module gives an easy interface to get entity variables.
* Twig Tweak This module makes more Drupal specific twig functions which can be used in the formatter field.
* Devel This module is helpful for finding the right field and field variables when kint is enabled.

Alternative Modules
* Field Token Value: This module creates a Field API type and widget which allows a field to be created with the value containing tokens.
* Computed field: Computed Field is a very powerful field module that lets you add a custom "computed fields" to your content types.
* Extra field: Provides plugin types to add extra fields in entity view and entity form of fieldable entities.
* Twig field: A simple module that provides Twig field type.
* Filter Twig: This is a very simple module to make twig values available as an input filter.
* Markup field: A simple field supposed to contain rendered markup and all related assets (css/js).

Project Usage
218
Creation Date
Changed Date
Security Covered
Covered By Security Advisory
Version Available
Production
Module Summary
The Inline Formatter Field module aims to allow site builders to template and style entities with a field by creating a new field type called 'Inline Formatter' which renders HTML or Twig content based on user input.
Data Name
inline_formatter_field

OPENAI CHATBOT

OPENAI CHATBOT

14:32:19
Generic Chatbot
Hi, I'm a Drupal module expert powered by OpenAI, answering your questions about the Drupal module ecosystem. How can I be helpful today? Please note that we will log your question.