Design and CSS styles
Version 5.x > Design and CSS styles > CSS List Menu Duplicate IDs View modes: 
User avatar
Member
Member
aboyce-alligatortek - 8/1/2011 2:47:33 PM
   
CSS List Menu Duplicate IDs
Hello, I'm trying to feel my way around the system. In my site I'm using a CSS List Menu at the top with superfish for dropdowns. I want to have a secondary navigation list in the right column, but I see that if I drop another CSS List Menu in, it renders the same ID on the UL as the primary navigation above (which is against proper HTML specification). Is there a way to make these IDs unique? They appear to be hard coded. TIA.

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/2/2011 5:57:55 AM
   
RE:CSS List Menu Duplicate IDs
Hello,

Yes, they are hard-coded in the web part code file. Please try to clone your CSS List Menu web part and change the CMSListMenu control ID in the ~\CMSWebParts\Navigation\cmslistmenu.ascx file of the cloned web part. This will enforce changing the ID also in the final HTML layout.

Best regards
Ondrej Vasil