drupal 7 - Using theme_hook_suggestions in hook_preprocess_page stops html.tpl.php from being used -



drupal 7 - Using theme_hook_suggestions in hook_preprocess_page stops html.tpl.php from being used -

i've added line hook_preprocess_page in template.php:

if (isset($vars['node']) && $vars['node']->type=='landing_page') { $vars['theme_hook_suggestions'][] = 'page__'. $vars['node']->type; }

this worked fine on test server have set on staging , has caused:

a) page template output - not surrounded html.tpl.php.

b) preprocess_html function in template.php not beingness called @ all.

if comment out line html.tpl.php used again.

this thread discussing similar opposite problem.

i'm stumped on - points useful!

this beingness caused calling undefined function in page template.

this wasn't apparent until started searching error logs.

hope may save else time...

drupal-7

Comments

Popular posts from this blog

web services - java.lang.NoClassDefFoundError: Could not initialize class net.sf.cglib.proxy.Enhancer -

Accessing MATLAB's unicode strings from C -

javascript - mongodb won't find my schema method in nested container -