Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Hide some menu items from cmslistmenu View modes: 
User avatar
Member
Member
jamxi - 3/15/2010 9:36:30 PM
   
Hide some menu items from cmslistmenu
I'd like to use the cmslistmenu, but I'd like to exclude a few of the nav items its dynamically generating. From the example below of how I have my content setup I don't want Home, Contact Us and Sitemap to display in the main nav. What's the best way to prevent them from showing up in the cmslistmen?

Home

About Us

Technologies
- tech 1
- tech 2
- tech 3

Services
- Service 1
- Service 2

Contact Us

Sitemap


User avatar
Kentico Developer
Kentico Developer
kentico_martind - 3/20/2010 5:44:10 AM
   
RE:Hide some menu items from cmslistmenu
Hello,

You could add some custom field of type boolean for CMS.MenuItem document type and set this field to true for documents that you don't want to display in main nav. Then you can set WhereCondition of the main menu to display only values that have this value set to false (0), e.g.: MyCustomField = 0

Best Regards,

Martin Dobsicek