Hello,
I read that I can override the template used by a specific type of content by creating a template file called page--<nodetype>.tpl.php in /sites/all/themes/adaptivetheme/<theme>/templates. Does this technique work with every theme or is this a theme specific feature?
In my case, the page--type.tpl.php file is simply ignored and the page.tpl.php file is used on each page (except the front page uses page--front.tpl.php).

I use a template which was created by a third party and I am not really deep into developing themes for Drupal, so is it possible that this theme does not support this feature?

Thanks,
Manuel

Comments

WorldFallz’s picture

Type specific page templates are not provided by core, only type specific node templates are. See http://drupal.org/node/1089656#page-suggestion for the default page suggestions provided by core. You can take the code that generates the type specific pages from the theme's template.php file and adapt it for any theme however.

mfaux’s picture

Thank you for your answer!

Can you tell me, which function will select the used template? Is it one of the
_preprocess_node() ones?

WorldFallz’s picture

You're looking for something like $variables['theme_hook_suggestions'][] = 'page__'. $type; -- see http://drupal.org/node/223440 for more info.