[drupal-support] Change theme by taxonomy
Stefan Nagtegaal
Drupal-Support at iStyledThis.nl
Mon May 9 08:13:39 UTC 2005
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/ ]
More information about the drupal-support
mailing list