Closed (fixed)
Project:
Documentation
Component:
Developer Guide
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
24 Feb 2006 at 05:51 UTC
Updated:
7 Mar 2008 at 17:11 UTC
This should go as a child of http://drupal.org/node/46012
If you want to sometimes theme a certain type of node, but othertimes want to just let the default node theme apply, you can use this (slightly black magic) snippet in your node-type.tpl.php
<?php if ($node->do_special_handling) { ?>
// custom theming goes here
<?php } else {
print _phptemplate_callback('node', compact('node', 'title', 'content', 'links', 'page', 'submitted', 'picture', 'terms', 'sticky', 'node_url', 'name', 'date', 'taxonomy', 'main'));
} ?>
Comments
Comment #1
jstarbow commentedcreated page