Displaying Counts in Side Bar Menu

new_B - September 12, 2008 - 19:19
Project:SiteMenu
Version:6.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

Thanks kbahey for this useful module.

Would it be possible to have the option of adding node counts beside the taxonomy terms in the side bar menu generated and/or only displaying terms that have content tagged to them?

Thanks in advance for any advice/help.

#1

kbahey - September 13, 2008 - 16:14
Component:Miscellaneous» Code
Category:support request» feature request
Status:active» needs work

If someone creates a patch for this, I will include it.

#2

aharown07 - November 28, 2008 - 03:28

I just edited line 264 so it looks like this
if ($get_node_count /*&& $mode == 'page'*/) {

This seems to work but I'm guessing I've probably broken something? There must be some reason I don't know about for && $mode == 'page' to be there. I'm no php coder!

#3

tomiyana - January 26, 2009 - 10:35
Status:needs work» needs review

Hi,

I created a patch for 5.x and 6.x.
Could you review and merge it into CVS?

Thanks,

AttachmentSize
sitemenu-block-count.patch 1.61 KB

#4

kbahey - January 26, 2009 - 14:54
Version:5.x-1.0» 6.x-1.x-dev
Status:needs review» fixed

Applied to 6.x-1.x-dev, and 5.x-1.x-dev.

Will be available in the tarballs in about 10 hours from now

Thank you!

#5

System Message - February 9, 2009 - 15:00
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.