Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Just read your nice blog post. :) Sorry, I know I mentioned very often, and always said I'd want to make it more sexy before posting, but never really found the time to do it.
So this archive contains a Panels layout that I'm using on several sites -- which allows you to re-use the theme's regions and assign content to them.
Quite trivial... the CSS is not even required.
Not sure whether this fits better here or for Panels directly -- anyway, just wanted to get this finally into the wild. I suggest trying it, it's kinda cool. :)
Comments
Comment #1
Zach Harkey CreditAttribution: Zach Harkey commentedOMFG! That is so awesome.
Comment #2
Zach Harkey CreditAttribution: Zach Harkey commentedAfter much experimentation with sites using both Panels and Panels Everywhere I found Sun's trick for reusing theme regions to be more valuable than the ability to create site templates. His method also works with or without Panels Everywhere. This got me wondering if there is a way to reuse PE's Site template regions in this same way?
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedI've never been quite sure what to do with this or where to put it. It is interesting but I fear it is also very confusing.
Comment #4
sunI guess this panels layout idea rather belongs into Panels' queue, not Panels Everywhere... Not sure though, since I didn't use Panels Everywhere yet.
A proper implementation would have to
1) actually read the available layout regions from the (site's default?) theme
2) somehow prevent that this layout suddenly gets different regions from a different theme
3) perhaps use the theme's screenshot or something as layout icon
Furthermore, the approach is limited in that panels panes are either output before or after regular blocks in the theme's regions. Although there may even be ways to solve the before/after limitation (two panels layout regions per theme region + override http://api.drupal.org/api/function/theme_blocks/6 in some way), it won't allow you to mix blocks and panes freely. However, until now, this never invalidated the approach. If all fails, you can still configure your panel to skip block regions, and simply re-populate them via panes. D7 may allow advanced ways to intermix both.
Comment #5
squiggy CreditAttribution: squiggy commentedsubscribe
Comment #6
drupalninja99 CreditAttribution: drupalninja99 commented+1 for using theme regions, it would be great to have a variable called 'sidebar left' that you place in your panel.
you would have the option of using panels for block placement or context for block placement. right now you dont have that choice.
Comment #7
yareckon CreditAttribution: yareckon commentedThis is actually a really sexy approach, allowing you to combine hand placed content from a pane with automatic global content in the theme regions handled by the devseed context module or something.
Comment #8
mansspams CreditAttribution: mansspams commentedsuns files does not work properly 'as is' so marking this as active. As I understand its just proof of concept?
Maybe there could be a way to feed any template region same contexts? via themes page preprocess?
Comment #9
mansspams CreditAttribution: mansspams commentedThere is issue over at Context module #305289: Integration with Panels module, they are working on exposing Contexts to Contexts (lol) As I understand, goal is something that PE is trying to achieve, but using theme regions and drag-and-drop admin module integration. Maybe, Merlin, you could drop a comment there?
Comment #10
JacineI really like this idea.
Comment #11
Letharion CreditAttribution: Letharion commentedI'm reading the issue, trying to understand what this does. Unfortunately, I don't.
In my head Panels is a way of not having regions, so this makes no sense to me ;)
Could someone elaborate on what the idea is here? :)
Comment #12
jherencia CreditAttribution: jherencia commentedWhat do you think about this #1540948-15: Catch up with the Panels Everywhere integration?
Comment #13
DamienMcKennaI'd honestly love to get this working and push it out as v2. Just need time :(
Comment #14
DamienMcKenna