Portal Engine Questions on portal engine and web parts.
Version 6.x > Portal Engine > Custom Menu - hiding pages View modes: 
User avatar
Member
Member
paul.truman-sunmed.co - 11/15/2012 8:10:26 AM
   
Custom Menu - hiding pages
Hey, I've used a repeater to create a custom navigation menu list, but I need to hide a page item when they uncheck the 'show in navigation' option in the properties of the menu page.

Is this possible to do?

User avatar
Kentico Support
Kentico Support
kentico_janh - 11/15/2012 8:31:33 AM
   
RE:Custom Menu - hiding pages
Hello,

You can compare the DocumentMenuItemHideInNavigation filed with a boolean value and append postfix to the css class or not render the code for that menu item at all:

<%# IfCompare(Eval("DocumentMenuItemHideInNavigation"),"True", "Not Hidden", "Hidden")%>


Best regards,
Jan Hermann

User avatar
Member
Member
paul.truman-sunmed.co - 11/15/2012 8:53:02 AM
   
RE:Custom Menu - hiding pages
Worked a treat! Many thanks :)