/ Published in: PHP
to use a different page.tpl per contenttype:
My template is now mytheme/templates/page--blog.tpl.php
My template is now mytheme/templates/page--blog.tpl.php
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function mytheme_process_page(&$variables) { $variables['theme_hook_suggestions'][] = 'page__'. $variables['node']->type; }
URL: http://drupal.org/node/1035656#comment-3996684