Custom template for specific node in Drupal 6?

I know that there are a ton of different custom template files like page.tpl.php and node.tpl.php etc. But is there a way to create my own template for a specific node identifier? This does not work node -3.tpl.php, but is there a way to do this?

UPDATE CODE

function phptemplate_preprocess_node(&$vars) {
    $vars['template_files'][] = 'node-' . $vars['nid'];
}
+5
source share
2 answers

For Drupal 6, the page template is "page- node -3.tpl.php" and read the manual at http://drupal.org/node/1089642

Drupal 7, page - node - 3.tpl.php: http://drupal.org/node/1089656

Thanks @Clive and @asiby.

+4
source

, . Drupal node -x.tpl.php, .

0

All Articles