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

miguel_angel’s picture

Try checking display descendants option and regenerate the menu.

barrett’s picture

Status: Active » Closed (fixed)

This 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.

marcoka’s picture

Version: 6.x-2.9 » 7.x-1.x-dev
Component: Miscellaneous » User interface
Category: support » feature
Status: Closed (fixed) » Active

there was no real need, it was somehow a feature idea.

dadaisme’s picture

Category: feature » bug

Hi!

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.

barrett’s picture

Category: bug » feature
Status: Active » Fixed

@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...

node 1 whit taxo Country + City1

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.

dadaisme’s picture

It's double counted because it exists independently in each term list.

Is 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?

barrett’s picture

node 1 whit taxo Country + City1
node 2 whit taxo Country + City2
node 3 whit taxo Country

Node 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.

dadaisme’s picture

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.