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.
Using the "Additional CSS Class" Field, I enter a class with UNDERSCORES between words, like : "related_links_callout_link"
This gets rendered as "related-links-callout-link"
See screen shots.
Anyone have a solution?
Comment | File | Size | Author |
---|---|---|---|
#5 | link_css_class_underscore_hyphen-2470377-5.patch | 810 bytes | Anonymous (not verified) |
2015-04-13 17-53-55.jpg | 80.19 KB | alphex | |
2015-04-13 17-52-51.jpg | 44.17 KB | alphex |
Comments
Comment #1
alphex CreditAttribution: alphex commented(fixing broken URL)
Comment #2
alphex CreditAttribution: alphex commentedComment #3
alphex CreditAttribution: alphex commentedComment #4
Anonymous (not verified) CreditAttribution: Anonymous commentedThis is actually an artifact of the way Drupal 7 core processes css classes with
drupal_clean_css_identifier()
. See the issue at https://www.drupal.org/node/1109854.Comment #5
Anonymous (not verified) CreditAttribution: Anonymous commentedActually it might be a good idea to alert users to this fact in the field configuration form. Patch attached.
Comment #7
jcfiala CreditAttribution: jcfiala as a volunteer commentedSounds good - I just pushed that up to 7.x-1.x, it should show up in -dev in a day or so.