I've found some code on this forum to use multiple levels, but with that code I get an ul for every menu item. Can you please help as this is quite urgent.
Well, you would have to modify TranslatedNavigation.cshtml or TranslatedNavigation.xslt, depending on whether you use the razor or xslt version. I don't know what's wrong with the code, since I haven't seen it, but maybe, if it nests <ul> tags within <li> tags, it doesn't work so well when there aren't 3 levels in your menu? Just a guess...
Multilevel Translated Navigation
Hi,
I'm having another issue.
This is my menu structure :
- Level 1
- Level 2
- Level 2
- Level 2
- Level 3
-Level4
I want the structure to be like this :
<ul>
<li>Level1
<ul>
<li>Level 2</li>
<li>Level 2</li>
<li>Level 2
<ul>
<li> Level3 </li>
</ul>
</li>
</ul>
</li>
</ul>
I've found some code on this forum to use multiple levels, but with that code I get an ul for every menu item. Can you please help as this is quite urgent.
Thank you!
Hello maarten,
Well, you would have to modify TranslatedNavigation.cshtml or TranslatedNavigation.xslt, depending on whether you use the razor or xslt version. I don't know what's wrong with the code, since I haven't seen it, but maybe, if it nests <ul> tags within <li> tags, it doesn't work so well when there aren't 3 levels in your menu? Just a guess...
Regards,
Dimitri
I managed to resolve the problem with some help. It was a little confusing with all those tags. :)
is working on a reply...