Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > adding blog post count next to category menu item View modes: 
User avatar
Member
Member
st00z - 8/29/2013 11:36:51 PM
   
adding blog post count next to category menu item
I have a blog site in which has a drop down menu displaying the blog categories. What i would like to do is add a count of the number of blog posts under each category, next to the navigation menu item:

i.e: CATEGORIES
> SPORTS (3)
> SOCIAL (2)
> GENERAL (5)

Can anyone tell me the code i would need to add to achieve this in the menu?


cheers
sm

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/29/2013 11:58:14 PM
   
RE:adding blog post count next to category menu item
Hi,

The best way would be to use repeater to render the menu and in its transformation you can use the count of the subitems. Menu web part was not designed for this and it would require pretty big modification of its code.

Best regards,
Juraj Ondrus

User avatar
Member
Member
st00z - 8/30/2013 12:32:23 AM
   
RE:adding blog post count next to category menu item
wow..haha now i recall why i migrated away from kentico..have to go to alot of effort to achieve a seemingly simple mod.


thanks for the help