Thursday, July 7, 2011

how to create a separate node tpl for specific node?

If you want to use a specific node.tpl.php for a particular node, paste or merge this code into your template.php:

Drupal 6

function phptemplate_preprocess_node(&$vars) {
$vars['template_files'][] = 'node-' . $vars['nid'];
}
?>

No comments:

Post a Comment