Posted By

discipolo on 02/14/11


Tagged

templatephp preprocesspage


Versions (?)

Drupal 7 page template suggestion


 / Published in: PHP
 

URL: http://drupal.org/node/1035656#comment-3996684

to use a different page.tpl per contenttype:

My template is now mytheme/templates/page--blog.tpl.php

  1. function mytheme_process_page(&$variables) {
  2. $variables['theme_hook_suggestions'][] = 'page__'. $variables['node']->type;
  3. }

Report this snippet  

You need to login to post a comment.