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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mstrelan’s picture

It would be nice if this could be a <h2> (or other various elements)

nils.destoop’s picture

Category: bug » feature

I'll look to add a setting (show or not). At the moment, it is ment to be not displayed.

Stalski’s picture

Status: Active » Fixed

This 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.

olofbokedal’s picture

Category: feature » bug
Status: Fixed » Active

The entire div is being replaced by a 0.

It still works as expected if the group is collapsed/collapsible.

olofbokedal’s picture

Status: Active » Needs review
FileSize
692 bytes

Seems like the problem occurred due to a simple concatenation error.

Stalski’s picture

Status: Needs review » Fixed

Sorry big mistake += instead of .=
I guess my javascript mindset was enabled somehow.

Stalski’s picture

hehe Yeah just saw it myself, thx for the report, it was already pushed.

rbayliss’s picture

Awesome. Thank you!

Stalski’s picture

Status: Fixed » Closed (fixed)