I have a website with items in following categories:
topcat1: 0
- sub1: 1
- sub2: 0
- sub3: 5
topcat2: 0
- sub1: 1
- sub2: 4
- sub3: 0
These articles are changing quite often, so I am looking for a way to make a menu from the counts of these categories:
topcat1: 6 (This is calculated from all the subcategories)
- sub1: 1 (Only shown if the topcat is chosen)
- sub3: 5 (Only shown if the topcat is chosen)
topcat2: 5 (This is calculated from all the subcategories)
- sub1: 1 (Only shown if the topcat is chosen)
- sub2: 4 (Only shown if the topcat is chosen)
In this way to show how many articles there is in each topcat, and also show articles in subcategories - AND empty sub categories not to be shown in the menu...
- If this just is totally impossible, just showing:
topcat1: 6 (This is calculated from all the subcategories)
topcat2: 5 (This is calculated from all the subcategories)
in a module, would be enough :)