Closed (fixed)
Project:
radix
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Reporter:
Created:
25 Mar 2013 at 10:34 UTC
Updated:
13 Aug 2013 at 10:01 UTC
Greetings,
Does this snippet from template.php also support panelizer panes? Or is it only for actual panels? It doesn't seem to work with panelizer. How might it be modified to recognizes panelizer pages? Many thanks for any advice. Cheers Kevin
// determine if the page is rendered using panels
$vars['is_panel'] = FALSE;
if (module_exists('page_manager') && sizeof(page_manager_get_current_page())) {
$vars['is_panel'] = TRUE;
}
Comments
Comment #1
shadcn commentedHmm, you're right. Looking into it. ^^
Comment #2
shadcn commentedpanelizer_is_panelized()might be what we're looking for.See http://drupalcode.org/project/panelizer.git/blob/c28bd610f836f26ec5f9c96...
Comment #3
pyxio commentedCool thanks. Does the rest of the code stay the same you think? I just want to make sure this code is doing what I think it is supposed to do, which is hide show some markup on pages without panels that is not shown on panels pages, right? I am thinking this is a fallback for pages not using panels in the event there are any on a site. So if the markup has the "container" class it is not displayed by default on panels pages but is displayed on non panel pages. I would like the theme to look at least OK on non panel pages as well. Cheers Kevin
Comment #4
shadcn commentedYes.
The idea behind this is to have a .container class wrapping non-panel pages. We don't have it on panel pages because we want panels layout to be able to go full width if they need to and not constraint inside the #main wrapper. This way we can have truly flexible layouts, all with panels.
See the homepage of http://dev.restaurant.gotpantheon.com for an example.
Comment #5
shadcn commentedMarking this one as fixed as well. Feel free to re-open. Thanks