Return to Snippet

Revision: 41011
at February 10, 2011 21:05 by fadehelix


Initial Code
function themename_preprocess_page(&$variables) {
  if ($variables['node']->type != "") {
    $variables['template_files'][] = "page-node-" . $variables['node']->type;
  }
}

Initial URL
http://drupal.org/node/249726

Initial Description


Initial Title
Drupal - Page templates depending on node type

Initial Tags
template, drupal

Initial Language
PHP