By gdev on
Hi,
Is it possible to change theme according to the selected node ? So I would like for instance to have a different theme automatically selected when a user goes in to the forum of a site .... Is this possible ?
Gdev
Hi,
Is it possible to change theme according to the selected node ? So I would like for instance to have a different theme automatically selected when a user goes in to the forum of a site .... Is this possible ?
Gdev
Comments
You can use taxonomy_theme
You can use taxonomy_theme module to switch theme's based on a nodes taxonomy term.
But to change the theme if the user goes to a forum is done using some phptemplate theme magic.
http://drupal.org/node/46027 explains how based on url path.
--
Ixis (UK) providing Drupal consultancy and Drupal theme design.
--
Ixis (UK): Drupal support, Drupal hosting.
I am using the category module ....
for organising content ... will this fact make me loose the by you mentioned functionallity wich the taxonomy module could give me ?
Gdev
You can theme different
You can theme different types of nodes. For example, if you want the forum nodes to look different than the "blog" nodes, you could copy node.tpl.php in your themes folder and rename it node-forum.tpl.php, or node-blog.tpl.php for each specific node type.
Thanks brenda ... thats
Thanks brenda ... thats usefull ... for wich nodes can I create a specific file ? Do you have any idea ?
\
Gdev
Any node "type". Blog,
Any node "type". Blog, story, page, forum. Flexinodes and CCK nodes work, too. Anything you can create (under "create content") can be themed seperately.