Increase Character Limit for Class Name Input in Field Formatter Class Module

Created on 30 January 2024, 11 months ago
Updated 11 September 2024, 3 months ago

Problem/Motivation

The current character limit of 128 characters in the input field for class names in the Field Formatter Class module is insufficient when using Drupal tokens, especially with "paragraphs" tokens. This limitation hinders the ability to input multiple tokens, restricting flexibility and functionality.

Steps to reproduce

  1. Install and enable the Field Formatter Class module.
  2. Try to input multiple Drupal tokens into the class name input field.
  3. Notice the limitation when attempting to enter more than 128 characters

Here is what some of the tokens that I am trying to work with look like:

[paragraph:field_imageboard_grid_img_width:value]
[paragraph:field_imgboard_grid_image_height:value]

Proposed resolution

Increase the character limit for the class name input field to accommodate longer strings. A new limit of 256 characters (or more) would allow for the use of multiple tokens, enhancing the module's utility in complex scenarios.

User interface changes

It would be. helpful to display a larger input field for class names which could allow for easier editing of longer strings, visibly accommodating more characters than before.

โœจ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

๐Ÿ‡จ๐Ÿ‡ฆCanada puya

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024