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.
Will be good have the option:
- 1- Label wrapper on the Field themplate -> expert
For example In some case have to put a <div>
to give some style around at <a>
and both have different class and atributes
Comment | File | Size | Author |
---|---|---|---|
#10 | label_wrapper-1824348-10.patch | 6.56 KB | borisson_ |
#3 | 1824348-label-wrapper.patch | 5.37 KB | alanburke |
#2 | label-wrapper.png | 98.41 KB | alanburke |
#2 | label-wrapper2.png | 45.57 KB | alanburke |
#1 | label-wrapper.patch | 5.33 KB | aspilicious |
Comments
Comment #1
aspilicious CreditAttribution: aspilicious commentedPatch
Comment #2
alanburke CreditAttribution: alanburke commentedCool.
But not quite there.
The Wrapper is inside the label.
Screenshots of config and output attached.
Comment #3
alanburke CreditAttribution: alanburke commentedAttempted fix attached
Comment #4
aspilicious CreditAttribution: aspilicious commentedI'm not a themer so i'm kind confused, what should be the desired output? Inside or outside the label? Carajito can you tell use?
Comment #5
alanburke CreditAttribution: alanburke commentedI just expected the wrapper to be on the outside - I'd consider the expected behaviour.
All other DS options are for wrapping the basic content, with the wrappers your require,
so this would be consistent.
Comment #6
aspilicious CreditAttribution: aspilicious commentedOk I'm fine with this. I'm going to commit this when I've tested it properly to ensure it doesn't brake anything.
Can take a week :)
Comment #7
aspilicious CreditAttribution: aspilicious commentedSprint material
Comment #8
aspilicious CreditAttribution: aspilicious commentedCommitted this finally.
Thnx!
Comment #9
aspilicious CreditAttribution: aspilicious commentedComment #10
borisson_I did some work on porting this to d8
Comment #12
aspilicious CreditAttribution: aspilicious commented