Display number of nodes per terms - Not working properly
vipconsult - March 29, 2008 - 14:41
| Project: | Taxonomy Menu |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | vipconsult |
| Status: | active |
Jump to:
Description
When I add a node to certain category sometimes it increments the number shown in te taxonomy menu and sometimes it doesn't.
Resetting the menu seems to solve the problem , but it is too annoying to do it very often

#1
I have the same problem!
Is a crazy issue for me and i'm not find the solution. In an web project I have 3 languages and all work perfectly with Taxonomy menu but in one menu isn't sow the children terms..
I think this is an issue with the i18n module...
#2
Also am having that same issue. Can't quite figure it out yet, although when clicking on the menu item, the correct count is listed, and all is well.
#3
Eh, forgot to comment that i'm running the dev version... why, I don't remember... but I am. Either way, I've cleared the cache, disabled/enabled the module, and the vocab terms, done everything... it seems that my node counts are stuck.
If anyone needs to take a look at the site, it's http://www.slappop.com ... It's driving me insane, I just can't figure it out.
#4
Yep, I'm getting the same. After doing a bit of testing, it seems to count each article twice, although not always.
Looking at the code, there's another issue. This line...
if (variable_get('taxonomy_menu_hide_empty', FALSE) == FALSE or $num != 0) {
...appears to use $num before it's declared and initialised. BTW, this is with the April 15th dev version with the patch applied (plus the tweak to avoid the "Array -> Array" problem with the breadcrumb)
#5
Ah, okay, I've just figured out what's happening. Each parent taxonomy category is including it's children's taxonomy count, but I'm also assigning the child articles to the parent taxonomy as well.
I'm gonna file this as a new issue (well, more of a discussion actually), as I think it's probably distinct from the issues other people are having.