ASPX templates
Version 7.x > ASPX templates > Menu and css View modes: 
User avatar
Member
Member
mantas.audickas-gmail - 12/21/2012 2:42:07 AM
   
Menu and css
Hello, I am looking for way to create such menu:

<ul class="main-nav clear">
<li class="active">
<a href="#">
<span>Menu Item 1</span>
</a>
</li>
<li>
<a href="#">
<span>Menu Item 2</span>
</a>
</li>
<li>
<a href="#">
<span>Menu Item 3</span>
</a>
</li>
</ul>


However, it looks like CMSMenu control does not support that. It always adds some hardcoded classes which are not needed for me. Also it does not have possibility to put span's inside href nodes. And I do not like the way it adds class for each li item.

Is there any possibility to achieve such structure using standard controls and without creating own?

User avatar
Kentico Support
Kentico Support
kentico_janh - 12/22/2012 3:42:41 AM
   
RE:Menu and css
Hello,

Yes it is, please follow instructions in the article below:

How to build up a menu using the hierarchical transformation

Best regards,
Jan Hermann