Custom Node Template Module for Drupal 6

Recent Note: You may find the following useful to use in conjunction with the module or separately:

Display Taxonomy Terms Separately by Vocabulary in a Drupal Theme

The primary purpose of this page was to provide additional information and some examples on how to use the Custom Node Template module for Drupal. In advance of finding time to really work on adding information, I thought I would at least list a couple of simple examples.

1) A truly simple example would be cases where you want a little more flexibility on whether post information is displayed on a page. In the Themes Configuration settings, you'll see a simple list of checkboxes to control whether post information (i.e. author, date, etc.) is displayed based on content type. But perhaps you want this displayed on some pages (nodes) and not others within the same content type (page, story, blog, etc.). So a simple use of this module would be to upload a copy of the node.tpl.php in your theme, remove the part that causes post data to be displayed, and remain it something like Node-No-Post-Data.tpl.php (or whatever you choose). Then when you have a node where you don't want it displayed, you can easily override the Theme Configuration settings for the content type by simply choosing this node template under Node Template Settings.

2) Another simple use case for this module would be if you are creating a streamlined and simple look for a client's website (or your own) where you want to keep a uniform appearance for images included on the page. And I am thinking of cases where you want an alternative to adding images through a WYSIWYG editor (like TinyMCE with IMCE, etc.). So, you could add one or more CCK Imagefields to the content type and then create some different node templates - such as one to display the image on the left, one to display it on the right, etc. You can change the PHP in the node template to print specific fields instead of the standard content variable.

In the meantime, while this page is still a work in progress, please do not hesitate to ask a question about using the Custom Node Template module.

*********

Temp Page

For now, please see one of the following pages for more information:

Matthew Winters with Web New Castle

Web New Castle is led by Matthew Winters, an online community professional by background and now specializing in Drupal. See more about Matt Winters.