When in the "event_node_day" display - display a list of the events of a single day - I would love to have the list of terms related to the node. Exactly the same I have when I simply look a single node.

I tried working in the event.theme, in the theme_event_node_day function, also trying to use taxonomy_node_get_terms - but I've no success. I've seen similar needing in other postings (http://drupal.org/node/41776).

Can anybody help?

Thanks... :-)

Comments

francoud’s picture

Assigned: Unassigned » francoud
Status: Active » Needs review

OK I answered by myself... :-)

I hacked the event.theme and, in the theme_event_node_day function after the line 78, I added this code:

//----------
$myindex = 0;
$categories = taxonomy_node_get_terms($node->nid);
$output .= '';
foreach ($categories as $category) {
if ($myindex >0) $output .= ' | ';
$output .= l(t($category->name),'taxonomy/term/'.$category->tid);
$myindex++;
}
$output .= '';
//---------------

It works for me. I suppose that I'll loose this hacking at the next event's module update...

killes@www.drop.org’s picture

Status: Needs review » Active

not a patch. I think the request is reasonable, though.

francoud’s picture

Status: Active » Closed (fixed)

Old thread... I think I should close it...