I just wrote a fun little bit of code for answering a question on our Danish Drupal community site.
The user in question wanted to add different CSS-files, depending on the type of the node used as the main page content, and I just wanted to share a little bit of code demonstrating how much can be a achieved very easily with Drupal’s very flexible theming system.
So with no further ado, here it is:
1 2 3 4 5 6 7 8 9 | |
And in the example here, ”craftmen” is the name of the theme (the one used on Reveal IT, actually), and ”side” is the node type (it means “page” in Danish.).