Skip to main content

Home/ Drupal for Developers/ Group items tagged drupal6_theming

Rss Feed Group items tagged

Scott Blackburn

How to have a content type use a different page layout? | drupal.org - 0 views

  • function newsflash_preprocess_page(&$variables) {  if ($variables['node']->type == "static") {       $variables['template_files'][] = 'page-node-static';  } elseif ($variables['node']->type == "news") {        $variables['template_files'][] = 'page-node-news';  } elseif ($variables['node']->type == "codes") {        $variables['template_files'][] = 'page-node-codes';  } elseif ($variables['node']->type == "jokes") {        $variables['template_files'][] = 'page-node-jokes';  } }
1 - 2 of 2
Showing 20 items per page