[drupal-support] Change theme by taxonomy

Kobus Myburgh ITBJDM at puknet.puk.ac.za
Mon May 9 13:19:20 UTC 2005


Stefan,

I will check this out as well, as see if this works for me. As I said previously, I will provide feedback.

Thanks!

Kobus


>>> Drupal-Support at iStyledThis.nl 5/9/2005 10:13 AM >>>
Kobus,

i think you can use theme_add_style() for this inside your theme_node 
() function..


Stefan.


Op 9-mei-2005, om 9:15 heeft Kobus Myburgh het volgende geschreven:

> Hello,
>
> I am creating a theme that uses several css files. I want to load a  
> different css file depending on the taxonomy term. If the term is  
> "Animal" then load the animal.css file. If the term is "Human",  
> then load then human.css file. This will result in the look and  
> feel of the site being totally different, depending on which node  
> is displayed and under which taxonomy term it categorizes.
>
> When I put the <link rel...> statements in mytheme_page() function,  
> I do not have the value of $node->nid yet, and therefore I can't  
> switch to different css file. If I put the <link rel...> statements  
> in the mytheme_node() function, it works fine, except that the  
> theme logo doesn't change appropriately.
>
> Any suggestions would be greatly appreciated.
>
> Thanks in advance,
>
> Kobus
>
>
> -- 
> [ Drupal support list | http://lists.drupal.org/ ]

-- 
[ Drupal support list | http://lists.drupal.org/ ]




More information about the drupal-support mailing list