Panelized node page template flag variable

Public

Add a flag variable to the page template that says whether the page is a panelized node

Get raw version
php
  1. function themename_preprocess_page(&$variables, $hook) {
  2. // Check for panelized nodes.
  3. if ($handler = panelizer_entity_plugin_get_handler('node')) {
  4. $variables['is_panelized_node'] = TRUE;
  5. }
  6. }