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.
First of all thanks for this great module!
Right now it's only possible to define pane separator when using the semantic panels style plugin on regions.
It would be cool to be possible to define html wrapper elements on the regions too.
Comment | File | Size | Author |
---|---|---|---|
#1 | semantic_panels-region-container-2140079-1.patch | 4.91 KB | osopolar |
Comments
Comment #1
osopolarThis ads a container to the region, is this what you requested?
Comment #2
afoster CreditAttribution: afoster commentedThanks for the patch - but it's a little different then what I was thinking.
I can now edit the separator which is useful, but I would like to control a wrapper for the panel region. The reason I'd like to do this would be to apply grid layouts to the panels inside the region by controlling the css that wraps them. So I'm not putting specific grid classes on each panel pane, but it would be helpful to wrap the region itself.
So by default panels creates something similar to this.
It would be great to be able to customize the panel region like this
Which may not be possible, so a second option would look like this
Option 1 is better with less markup-cruft, but option 2 is fine as well. Basically by creating a series of grid class I could then more easily manipulate the layout of panel panes in a region but changing the class of the wrapper
Comment #3
osopolarYou may check Clean Markup Module which allows to select a wrapper and assign classes to it.
Comment #4
afoster CreditAttribution: afoster commentedThanks - That looks like what I need.
Comment #5
osopolarBut maybe the patch is interesting for someone else, like drupov, who opened the issue?
Comment #6
drupov CreditAttribution: drupov commented@osopolar thank you for the patch. It is what was requested and seems to work properly.