ASPX templates
Version 4.x > ASPX templates > Hide menu View modes: 
User avatar
Member
Member
sarattk05-gmail - 5/18/2009 10:11:15 AM
   
Hide menu
Hi;

I want To hide the menu Item In runtime How can i do this for Example:

I have the menu item Sign in Affter Sign in That Menu name Will change To Sign Out.
Anybody Know Please Replay me
Thanks In Advance

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/26/2009 2:36:49 AM
   
RE:Hide menu
Hello,

I would recommend creating two pages - one for sign-in and one for sign-out. Then you can set sign-in page to be displayed only to 'public' users and 'sign-out' page to be displayed only to authenticated user. This will ensure only one of these menu item will be displayed at the same time. You will also need to set 'check permission' property of menu to true. Please see Permissions for modules and documents and Displaying personalized content sections of Dev.Guide for more details.

Best Regards,

Martin Dobsicek