Drupal page template on nodetype


/ Published in: PHP
Save to your folder(s)

Only this portion needed

// Add page template suggestions based on node type, if we aren't editing the node.
if ($vars['node'] && arg(2) != 'edit') {
$vars['template_files'][] = 'page-nodetype-'. $vars['node']->type;
}

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.