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.
Currently the 'left' area is used for the panels block. It would be better to enable users to select which area to use. This is particularly an issue if new layouts are added that don't include left. (All current layouts do include it.)
Comment | File | Size | Author |
---|---|---|---|
#3 | panelsblock_areas.patch | 3.17 KB | recidive |
Comments
Comment #1
Wim LeersBy "users" you mean the "end-users", right? I.e. show multiple tabs, one for each area in the panel.
Comment #2
nedjoActually, no, I mean site admins.
I hadn't thought of the idea of having each of the panels be a tab. That would be a separate feature request issue.
Comment #3
recidive CreditAttribution: recidive commentedHere is a patch that does this. It adds a select to the panels form where users can choose what panel area they want to expose as a block. The question I have in mind is how to do with backward compatibility. For now I've changed PANELS_BLOCK_AREA to PANELS_BLOCK_DEFAULT_AREA, so if a exposed block doesn't have an area set, it will use the default.
Comment #4
nedjoNice, this looks great!
A small suggestion before you apply this. We should use the default area as the default if it exists. Here's an untested idea:
Then we don't need to justify the inclusion of this constant--it has a purpose beyond the update. Otherwise, we'd need an update that set the area for each existing registered panelsblock.
Comment #5
recidive CreditAttribution: recidive commentedCommited!
Comment #6
(not verified) CreditAttribution: commented