sometimes i need to know how many posts are there in each taxonomy, this (very) simple patch will do that.

Comments

morbus iff’s picture

Assigned: Unassigned » morbus iff
StatusFileSize
new4.31 KB

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

  • Add a new "display node counts" preference.
  • If no node counting, cache the menus as usual.
  • If node counting, don't cache the menus as all.

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! ;)

morbus iff’s picture

StatusFileSize
new3.92 KB

Grr. Wrong file.

yagami’s picture

Version: » 4.6.x-1.x-dev
Component: Miscellaneous » Code

need "Counting" feature in Taxonomy_menu for Drupal 4.6.2

waitting for you Morbus Iff!

brmassa’s picture

Status: Needs review » Closed (fixed)

fixed