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

shadcn’s picture

Assigned: Unassigned » shadcn

Hmm, you're right. Looking into it. ^^

shadcn’s picture

panelizer_is_panelized() might be what we're looking for.

See http://drupalcode.org/project/panelizer.git/blob/c28bd610f836f26ec5f9c96...

pyxio’s picture

Cool 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

shadcn’s picture

Yes.

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.

shadcn’s picture

Status: Active » Fixed

Marking this one as fixed as well. Feel free to re-open. Thanks

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.