theming

Giving Nodes a Wardrobe - meet page_is_node() and drupal_is_front_page()

If you've been using Drupal for awhile, you probably understand template hinting and how you can format one content type differently than another, by having a template file such as

node--my-content-type.tpl.php

Recently, however, I had the need to format a single content type differently depending on where it was presented:

Subscribe to theming