Allow token to be used in attributes and classes for HTML elements

Created on 17 April 2018, almost 7 years ago
Updated 20 February 2024, about 1 year ago

Allow tokens to be used in classes and attributes for HTML element.

Patch from field_group-tokens_in_classes-2858336-5-8.patch breaks the form display if classes are added. To fix this add an if statement to check for entity first.

Feature request
Status

Needs review

Version

3.0

Component

Miscellaneous

Created by

🇺🇸United States bobbysaul

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

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇧🇪Belgium xaa Brussels

    patch from #20 working here. thanks

  • Status changed to RTBC 10 months ago
  • 🇮🇳India uditrawat

    Yes, #20 is working, thanks

  • Status changed to Needs work 7 months ago
  • 🇩🇪Germany Anybody Porta Westfalica

    Please use MR, not patches.

  • First commit to issue fork.
  • First commit to issue fork.
  • Pipeline finished with Failed
    2 months ago
    Total: 358s
    #413778
  • 🇵🇭Philippines mjgruta

    Created a merge request from patch #20 plus changing the clean up code to only allow alphanumeric, hyphens, underscores, and space for classes.

    Also adding here the static patch just in-case someone modifies the MR and breaks the code.

  • The patch at the comment #20 work for me in version 8.x.3.4 since update to D 10.4, other version for this module not work a patch for me.
    I'm waiting apply this patch, since update to Drupal 10. i could grantee it's work in Drupal 11.1.2 whit version 8.x.3.4. if merged to dev i will test quickly and i will send my feedback.

Production build 0.71.5 2024