[support] Overriding page.tpl.php for node type...
Aldo Martinez Selleras
aldo at caonao.cu
Fri Apr 10 13:55:41 UTC 2009
this work for me, in template.tpl.php
function _phptemplate_variables($hook, $vars) {
if ($hook == 'page') {
if ($vars['node'] && arg(2) != 'edit') {
$vars['template_files'][] = 'page-'. $vars['node']->type;
}
return $vars;
}
them , i create some files!
page-blog.tpl.php
page-forum.tpl.php
page-privatemsg.tpl.php
page-my_node.tpl.php
--
----------------------
Aldo Martinez Selleras
Especialista en Telematica
CITMATEL GND Camaguey
Tel: 53 32 291661
Linux User #364356
More information about the support
mailing list