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

jstarbow’s picture

Status: Active » Closed (fixed)

created page