Posted By

fadehelix on 02/10/11


Tagged

template drupal


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

mlangfeld
ctronci


Drupal - Page templates depending on node type


 / Published in: PHP
 

URL: http://drupal.org/node/249726

  1. function themename_preprocess_page(&$variables) {
  2. if ($variables['node']->type != "") {
  3. $variables['template_files'][] = "page-node-" . $variables['node']->type;
  4. }
  5. }

Report this snippet  

You need to login to post a comment.