Technical support This forum is closed.
Version 1.x > Technical support > cmslistmenu - disabling the first level View modes: 
User avatar
Member
Member
forrester - 5/2/2006 9:54:53 PM
   
cmslistmenu - disabling the first level
Is it possible to disable the first level on a menu (and remain visible), so that the dropdowns are the only active links? I am using the CMSListMenu control with 1.9/VS2003/C#.

Thanks for your help.

forrester

User avatar
Guest
admin - 5/3/2006 9:56:52 AM
   
Re: cmslistmenu - disabling the first level
Yes, it's possible. You need to set up the first-level menu items as pages of type "Javascript" and set the Javascript to "javascript:void()" so that nothing happens when you click on the items.

Best Regards,

User avatar
Member
Member
forrester - 5/3/2006 3:00:50 PM
   
Re: cmslistmenu - disabling the first level
Awesome and simple too! Exactly what I needed.

Thanks,
forrester

User avatar
Member
Member
forrester - 5/4/2006 4:39:06 PM
   
Re: cmslistmenu - disabling the first level
The Javascript command works like a charm...until...I want to remove it and enable a link. I then get the message "Please enter some JavaScript code." I figured that since the textbox is empty to begin with, I could just delete "Javascript:void()" and save...but I can't, because the above message appears.

Your help is appreciated.

forrester

User avatar
Guest
admin - 5/5/2006 8:54:55 AM
   
Re: cmslistmenu - disabling the first level
Hello,

Thank you for your message. I have tested it in Kentico CMS 1.9/VB 2005 and it works correctly - you need to switch the Type back to "Page Template" and enter the page template details. Then, you can save the page correctly.

Please let me know if it works for you and if not, which version you're using.

Thank you.

Best Regards,

User avatar
Member
Member
forrester - 5/5/2006 2:21:26 PM
   
Re: cmslistmenu - disabling the first level
Thanks Petr...I am using 1.9/C# 2003 and it works now. I did not realize that I had to reset the "Page Template" details again.

Regards,
forrester