Design and CSS styles
Version 5.x > Design and CSS styles > CMSMenu View modes: 
User avatar
Member
Member
Imran - 5/20/2011 3:48:17 PM
   
CMSMenu
Hi Guys,

Can we modify the top menu bar in Kentico, i.e. can we embed HTML Tags in there?

We can add a repeater and have it render a new menu, but I need to modif the top menu bar. We can change style, text and color of that menu, but can we do more? like wrapping our own HTML around each menu Item?

Using HTML Envelop, we can wrap the whole menu, but not individual menu item?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 5/25/2011 5:19:39 PM
   
RE:CMSMenu
Hello,

actually it's not possible to add any custom HTML content to our Navigation controls unless you use our API. This means, you can use the following approach: http://devnet.kentico.com/Forums.aspx?forumid=36&threadid=7311 which lies in modifying the final HTML layout of the CSS List Menu (yes, it is different from the CMS Menu you are referring to, but it is much better from the development point of view as well as from the SEO perspective - it is completely CSS driven).

On the other hand, it is possible to use the Repeater control and define any HTML layout you want in its transformation. This has a downside, however, because you need to create a custom functions to transformation which will handle the "navigation behavior". I mean, you need to highlight the current item, check the Show in navigation flag, etc.

It's definitely up to which way you go. Hope I helped to put you on the right track.

Best regards
Ondrej Vasil