O'Reilly logo

Drupal 6 Theming Cookbook by Karthik Kumar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Customizing the appearance of a particular node type

Drupal's PHPTemplate theming engine uses naming conventions to easily theme nodes. While the standard template used is named node.tpl.php, other naming conventions are available to target specific subsets of nodes. Here, we will be looking at specifically theming content of a particular node type—story—by removing information about its categories and submission fields during display.

Getting ready

This recipe uses the myzen theme created earlier in this book as an example theme. As we are targeting particular node types, it will be a good idea to have more than one node type enabled along with sample content for each.

How to do it...

The following steps are performed in the theme folder, which ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required