Drupal Preprocess Panel HTML -


i wondering if there function hook_panels_preprocess_html add own class body of rendered page. i'm using panels everywhere module don't think hook_preprocess_html function work in case.

thanks.

just add following code template.php

<?php function yourtheme_preprocess_page($vars) {  if ($vars['node']->type == 'panel') {     $vars['template_file'] = 'page-panel';   } } ?> 

then create file called "page-panel.tpl.php" in theme directory , clear cache apply changes.


Comments

Popular posts from this blog

c# - Operator '==' incompatible with operand types 'Guid' and 'Guid' using DynamicExpression.ParseLambda<T, bool> -

matlab - How to equate a structure array to structure array -