Drupal 7 page template suggestion


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

to use a different page.tpl per contenttype:

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


Copy this code and paste it in your HTML
  1. function mytheme_process_page(&$variables) {
  2. $variables['theme_hook_suggestions'][] = 'page__'. $variables['node']->type;
  3. }

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

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.