Closed (duplicate)
Project:
Taxonomy Menu
Version:
6.x-2.9
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2011 at 21:42 UTC
Updated:
25 May 2013 at 21:28 UTC
somewhere in function _taxonomy_menu_item there should perhaps be something like this:
if ($num == 0) {
$terms=_taxonomy_term_children($item['tid']);
out($terms);
foreach ($terms as $tid) {
$num=$num+taxonomy_term_count_nodes($tid);
}
}
this way, the parent terms menu items of a hierachy will have a number that is the sum of the count of the children instead of (0) as is now, of course the above code is quick and dirty, but you get the point. This is especially important when used in conjunction with nice_menus.
Comments
Comment #1
johnvThis is a duplicate of #1064510: 'Display number of items': Node count should include descendants
Comment #1.0
johnvlog