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

venkatd’s picture

Just 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!

merlinofchaos’s picture

Category: bug » support

Right. 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. =)

venkatd’s picture

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

merlinofchaos’s picture

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

Letharion’s picture

Version: 6.x-1.0 » 6.x-1.x-dev
Category: support » feature

Updating status.

Letharion’s picture

Status: Active » Closed (won't fix)

Actually this is a feature request for the page manager, which for all I know, could even already have this.

merlinofchaos’s picture

Yes, 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.