Closed (fixed)
Project:
Taxonomy Menu
Version:
7.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Aug 2010 at 11:56 UTC
Updated:
2 May 2012 at 03:30 UTC
Hi,
i have generated a menu:
Dog(0)
-Dog1(1)
-Dog2(5)
-Dog3(2)
Is it possible to have Dog(8), like showing the sum of the children?
thank you
Comments
Comment #1
miguel_angel commentedTry checking display descendants option and regenerate the menu.
Comment #2
barrett commentedThis support request has had no activity in the over a year. I'm assuming the need has passed. Feel free to reopen if you still need support on this issue.
Comment #3
marcoka commentedthere was no real need, it was somehow a feature idea.
Comment #4
dadaisme commentedHi!
First : great module.
Checking display descendants option gives a count but it is wrong.
For exemple, if I have 2 nodes :
node 1 whit taxo Country + City1
node 2 whit taxo Country + City2
The node count gives
Country (4)
-City1(1)
-City2 (1)
Thx.
Comment #5
barrett commented@e-anima: that feature exists in the current implementation of 7.x-1.x-dev, as suggested in comment 1.
@dadaisme: if you're reporting a problem with this feature, please create a new bug issue rather than repurposing an existing issue. That said...
Are you saying that node 1 is tagged with the terms for both Country and City1, or merely reflecting that City1 is a child term of Country? If the former, the count is correct: node 1 appears once in Country and a second time in City1. It's double counted because it exists independently in each term list.
If, on the other hand, you were saying the latter, then I am unable to replicate the behavior you're reporting and will need more information. For that, file a new bug issue.
Comment #6
dadaisme commentedIs it possible to obtain a unique node count wihout doublons ?
E.g.:
node 1 whit taxo Country + City1
node 2 whit taxo Country + City2
node 3 whit taxo Country
A unique node count would give, what i'm looking for :
Country (3)
-City1(1)
-City2 (1)
now, whit "Display descendants" On :
Country (5)
-City1(1)
-City2 (1)
When I disable the "Display descendants" the count gives for the above exemple
Country (1)
-City1(1)
-City2 (1)
In e-anima exemple above, he will obtain dog(16) insted of dog(8).
Thx.
Note: I did not open another issue because it seemed to be the same (Node Count, children), or should I?
Comment #7
barrett commentedNode 1 has two taxonomy terms, correct? County and City1? If that's the case, there's no way to get a unique count because the code will never be able to determine under which term the node should be counted.
It seems to me that the most correct solution to your problem is to remove the Country term from the nodes which are also tagged with either City1 or City2. If the City1 and City2 terms are child terms of the Country term, then tagging them in a city automatically makes the affiliation to country, so separate tagging of country is redundant.
Comment #8
dadaisme commentedI have found bad nodes missing some taxo in the site I'm working on... that is why the count was off when the "Display descendants" is turned off.
Sorry for the trouble!
Thx.