Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • maarten 10 posts 30 karma points
    Mar 22, 2012 @ 16:27
    maarten
    0

    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!

  • dimi309 245 posts 579 karma points
    Mar 22, 2012 @ 20:48
    dimi309
    0

    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

  • maarten 10 posts 30 karma points
    Mar 23, 2012 @ 08:04
    maarten
    0

    I managed to resolve the problem with some help. It was a little confusing with all those tags. :)

     

Please Sign in or register to post replies

Write your reply to:

Draft