Hi there...
Pretty new in here so forgive me if this is the wrong place to post it or even if it has already been posted somewhere (though i had look around)
I think i found an error in function theme_views_bonus_panels_byterm_summary. When the depth is > 1, the prefix is been build...but its not reset so all next terms come with a prefix.
I just add before line 43 the following
$prefix='';
and works like a charm
so the function must be something like this
function theme_views_bonus_panels_byterm_summary($view) {
theme_add_style(drupal_get_path('module', 'views_bonus') .'/views_bonus.css');
// argument 0 must be a vocabulary ID
$vid = $view->args[0];
$tree = taxonomy_get_tree($vid);
// group terms with their parent
foreach ($tree as $term) {
$cnt = taxonomy_term_count_nodes($term->tid);
if ($term->depth > 1) {
$prefix = _taxonomy_depth($term->depth-1). ' ';
}
$txt = array($prefix. l($term->name, "$view->real_url/$term->tid"). " ($cnt)");
if ($term->depth == 0) {
$parent_tid = $term->tid;
$groups[$parent_tid]['header'] = $txt;
}
else {
$groups[$parent_tid]['rows'][] = $txt;
}
$prefix=''; /* ADD THIS LINE */
}
.....
and thank you for this nice module :D
Krunar
Comments
Comment #1
dmitrig01 commentedComment #2
neclimdulno longer maintained.