sometimes i need to know how many posts are there in each taxonomy, this (very) simple patch will do that.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | taxonomy_menu_0.patch | 3.92 KB | morbus iff |
| #1 | taxonomy_menu.module.orig | 4.31 KB | morbus iff |
| taxonomy-counting.patch | 919 bytes | pczou |
Comments
Comment #1
morbus iffI feel like I'm almost there with this patch, but I'm missing something obvious about Drupal 4.5's menu caching handling stuff. The previously submitted patch works just dandy on 4.4, but fails on 4.5 where menu caching becomes an issue (ie., you add a new node to a tid and it won't show in the menu counts due to the menu cache). So, the attached patch purports to:
The counting has been working fine, but I keep getting "Access denied" when I try to access any of the menus. If I remove the else block in _menu, everything works just dandy. I can't for the life of me figure out how to get caching and not-caching working together. Other than that, the patch should work alright! ;)
Comment #2
morbus iffGrr. Wrong file.
Comment #3
yagami commentedneed "Counting" feature in Taxonomy_menu for Drupal 4.6.2
waitting for you Morbus Iff!
Comment #4
brmassa commentedfixed