By wpanssi on
I'm trying to theme a spesific node differently using these instructions: http://drupal.org/node/136647
However, it doesn't seem to work.
Here is my function in template.php:
function _phptemplate_variables($hook, $vars) {
$vars = array();
if ($hook == 'page') {
// These are the only important lines
if (module_exists('page_title')) {
$vars['head_title'] = page_title_page_get_title();
}
}
if ($hook == 'node')
$vars['template_files'] = array('node-'. $vars['nid']);
return $vars;
}
And I made a file called node-1.tpl.php into my theme folder but when I view it, the node-1.tpl.php is not used..
Any help appreciated!
Comments
first line is not right
Check there is no return before getting to the 'node' part?
___________________
It’s in the detaιls…
demonstration portfolio