0

I have created the templeate html-landing.tpl.php and try to include it in a template with the following in my template.phpenter code here

function myfuntion_preprocess_html(&$variables, $hook) {

$node = menu_get_object();

if ($node->nid == 60) {

$variables['theme_hook_suggestions'][] = 'html-landing';

} }

The code is called but the template used is the standard html.tpl.php.

Any ideas?

LeBlaireau
  • 17,133
  • 33
  • 112
  • 192

1 Answers1

0

Have you tried using underscore instead of dash?

I'd go for something like this:

function myfunction_preprocess_html(&$variables, $hook) {
  $node = menu_get_object();
  if ($node && $node->nid == 60) {
    $variables['theme_hook_suggestions'][] = 'html_landing';
  }
}

More details at http://drupal.org/node/190815#comment-4167060

bbujisic
  • 508
  • 5
  • 8