page di un vocabolario

2 contenuti / 0 new
Ultimo contenuto
page di un vocabolario

come faccio ad ottenere il nome del file page-nomevocabolario.tpl.php per un determinato vocabolario?

ho provato in mille modi ma non riesco a fare l'override.

in template.php potresti inserire il codice sottostante:

<?php
function _phptemplate_variables($hook, $vars = array()) {
    switch (
$hook) {
        case
'node':
            if (
arg(0)== 'taxonomy') {
               
$vars['template_files'] = array(
                   
'node-taxonomy',
                   
'node-'.$vars['node']->type.'-taxonomy'
               
);
            }
        break;
    }
    return
$vars;
}
?>

Slice2Theme Servizio per la conversione di Design in markup HTML e/o temi.

WeBrain Solution | Pillsofbits Of Bits