By somes on
Need to change how the event module presents data
at the moment the upcoming event that may be listed in the sidebar is displayed as
node title
days left and category name
what I was wondering is would any one know where in the events module is the category defined, I would like to change this to a term id of the category rather than the main category title
is this difficult
cheers
M
Comments
tracked it down to
I tracked the code down to
$ctype = module_invoke('flexinode', 'load_content_type', substr($node->type, 10));
$node->typename = ($ctype->name ? $ctype->name : $node->type);
where the node->type is the line that needs changing to some term id
any ideas what I need to change it to
what are the lines
($ctype->name ? $ctype->name : $node->type);
doing
later
M
Ternary operator
Quite simply put, it's saying "If there's anything in the content type name, use the name, otherwise, use the type."
So you can replace the whole chunk in parens with what you're looking to have displayed.