Skip to main content

how to create page-node-type.tpl.php

function yasglobal_preprocess_page(&$vars, $hook) { if ( isset($vars['node']) ) { // If the node type is "blog" the template suggestion will be "page-blog.tpl.php". if($vars['node']->type == 'story'){ //print $vars['node']->type; exit; $vars['template_files'][] = 'page-story'; } }
}