Drupal Questions & Answers

Ask and answer Drupal related questions! No question too simple or complex!
tulip's picture
Asked by on Mon 13th Apr 2009
Theming basics. If I want each of my content types to have a different theme....

I know I can use the Zen sub-theme & modify it (which I already did for my home page), but if I want each of my content types to have a different theme, where would I put this code? — Found here —> http://drupal.org/node/223440

<?php
function my_theme_preprocess_page(&$variables) {
  if (
$variables['node']->type == "my_content_type") {
   
$variables['template_files'][] = 'page-node-my_content_type';
  }
}
?>

Thanks,
Tami

Commenting on this Drupal Question is closed.