I'm using the "summarize by year" option in the "arguments" section of a view, and it works perfectly, showing something like:
2006 (12)
2007 (6)
2008 (9)
but I need to remove the "node count" after the year. I guess I could theme the function in template.php of my theme, but.. what function should I rewrite? Please any help...? Thanks in advance...
FB
Comments
Comment #1
francoud commentedOpppsss... ok.. I found the answer by myself... ;)
I just inserted in template.php a new version of the function "theme_views_summary", just removinig the node count portion.
Sorry :)
/**
* Display a summary version of a view.
*/
function phptemplate_views_summary($view, $type, $level, $nodes, $args) {
foreach ($nodes as $node) {
$items[] = views_get_summary_link($view->argument[$level]['type'], $node, $view->real_url);
}
if ($items) {
$output .= theme('item_list', $items);
}
return $output;
}