Closed (won't fix)
Project:
Panels Everywhere
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2010 at 05:13 UTC
Updated:
11 Mar 2011 at 20:05 UTC
I am not positive that this is a bug but...
I enabled Panels Everywhere and set a default variant in the site_template page with layout A and content B.
I created a home page panel with path /home. I set it to have layout C and content D. When I navigate to /home, layout B was used. Both content B and D are rendered to the regions. I think this is because both the site_template page and the home page are executed.
As a workaround, I have to add a selection rule to site_template that the path != 'home'.
Comments
Comment #1
venkatd commentedJust to clarify, site_template and the the home page are two different pages. I didn't not create the home page as a variant within site_template.
Thanks!
Comment #2
merlinofchaos commentedRight. So the interesting thing is that Panels can't tell if your panel page wants the site template or not. The way I intended this to work is that you can use the Managed Page access rule to exclude *other* panels from rendering inside the site template. That way you can at least just have one rule that will account for all your panel pages. But then, if you want some pages to render within a site template, and some not, you'll have to find some other rule. I haven't quite worked that one out yet. =)
Comment #3
venkatd commentedThanks for the info. When I selected a layout for the homepage, from a usability standpoint I assumed the layout I selected was going to be used (not the site_template layout).
Here is an idea: what if you had an override button like you have in views? This means, when you go to a page other than site_template, the layout used in site_template will be force-selected. If you click override, than you can change it. Maybe you could take override even further and allow users override different regions of the site_template. Just a thought.
By the way, thanks for the efforts in making this module! It has really simplified my development.
Comment #4
merlinofchaos commentedThat requires making the page manager UI actually aware of the site template and putting in a switch somewhere. Which isn't a bad idea, but right now Page Manager exists as a layer beneath Panels Everywhere and isn't really aware of it as such. It makes it tricky to figure out where to put the code to do it, and how to do the UI.
Perhaps we could repurpose the "Drupal regions" checkbox somehow, though. That could be interesting. When using the site template, that checkbox is meaningless anyway...
Comment #5
Letharion commentedUpdating status.
Comment #6
Letharion commentedActually this is a feature request for the page manager, which for all I know, could even already have this.
Comment #7
merlinofchaos commentedYes, PE now adds a "template" tab to variants. You can directly set any panel page to use a specific site template or use none at all.