/ Published in: PHP
                    
                                        
Add this snippet to template.php
                
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
function themeName_preprocess_page(&$variables, $hook) {
// When this goes through the theme.inc some where it changes _ to - so the tpl name is actually page--type-typename.tpl
$variables['theme_hook_suggestions'][] = 'page__type__'. str_replace('_', '--', $variables['node']->type);
}
}
URL: http://cheekymonkeymedia.ca/blog/brian-top-chimp/how-have-drupal-7-node-type-page-tpls
Comments
 Subscribe to comments
                    Subscribe to comments
                
                