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.
For the div formatter, the title only shows up if you choose to make the div collapsible. I'm not sure if this is intended or not, but it feels like a bug since you can still enter a title. Anyway, here is a patch to add the title to the div if it is not collapsible.
Comment | File | Size | Author |
---|---|---|---|
#5 | field_group-div-title-1205502-5.patch | 692 bytes | olofbokedal |
field_group-div-title.patch | 686 bytes | rbayliss |
Comments
Comment #1
mstrelan CreditAttribution: mstrelan commentedIt would be nice if this could be a
<h2>
(or other various elements)Comment #2
nils.destoop CreditAttribution: nils.destoop commentedI'll look to add a setting (show or not). At the moment, it is ment to be not displayed.
Comment #3
Stalski CreditAttribution: Stalski commentedThis is fixed. Two extra options available for div now
- Show label: Will show the label in the label element provided. Important to know is that when the div is collapsible, the label will always be shown to toggle, but also in the label element
- Label element: Currently supported h2 and h3 with a span in it. This could be extended along the way. Any feedback is welcome
Note that recently div is added to the form fields as well.
Comment #4
olofbokedal CreditAttribution: olofbokedal commentedThe entire div is being replaced by a 0.
It still works as expected if the group is collapsed/collapsible.
Comment #5
olofbokedal CreditAttribution: olofbokedal commentedSeems like the problem occurred due to a simple concatenation error.
Comment #6
Stalski CreditAttribution: Stalski commentedSorry big mistake += instead of .=
I guess my javascript mindset was enabled somehow.
Comment #7
Stalski CreditAttribution: Stalski commentedhehe Yeah just saw it myself, thx for the report, it was already pushed.
Comment #8
rbayliss CreditAttribution: rbayliss commentedAwesome. Thank you!
Comment #9
Stalski CreditAttribution: Stalski commented