Skip to content

Instantly share code, notes, and snippets.

@robdecker
Last active November 2, 2019 02:16
Show Gist options
  • Save robdecker/5855663 to your computer and use it in GitHub Desktop.
Save robdecker/5855663 to your computer and use it in GitHub Desktop.
[Page templates depending on node type] #d6
function THEME_preprocess_page(&$vars) {
if ($vars['node']->type != "") {
$vars['template_files'][] = "page-node-" . $vars['node']->type;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment