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

Created on 30 January 2024, 5 months ago
Updated 28 May 2024, 29 days 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.

πŸ“Œ Task
Status

Needs review

Version

1.6

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.69.0 2024