Active
Project:
Pleroma
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
24 May 2007 at 04:06 UTC
Updated:
24 May 2007 at 04:06 UTC
I wasn't getting terms printed, added this function to template.php and there they were
function _phptemplate_variables($hook, $vars = array()) {
switch ($hook) {
// Send a new variable, $has_terms, to see wether the current node has any terms
case 'node':
if(count(taxonomy_node_get_terms($vars['node']->nid)))
$vars['has_terms'] = TRUE;
else
$vars['has_terms'] = FALSE;
}
return $vars;
}
Thanks for the theme