We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14701
    • 3 Posts
    Hello,

    I am trying to make a non nested menu + sub-menu (for a website with a menu, a sub menu and a sub-sub-menu => the
    sub-menu should spit out the sub-sub-menu).

    So I want WayFinder to output something like

    <ul is="submenu">
     <li>bla</li>
     <li>bla</li>
    </ul>
    <ul id="subsubmenu">
      <li>bla2</li>
     <li>bla2</li>
    </ul>
    


    instead of
    <ul id="submenu">
     <li>
       <ul id=subsubmenu'>
        <li>bla2</li>
        <li>bla2</li>
       </ul>
     </li>
     <li>bla</li> 
    </ul>
    



    Does anybody have an idea how to get this done? I can’t figure out how to do this.

    Thnx in advance!

      • 29401
      • 4 Posts
      Yes, yes. Me too! Been searching around and couldn’t find info on that. Unfortunately a noob when it comes to ModX.
      /T
        • 4310
        • 2,310 Posts
        Are you looking for Level 1 items in their own menu while Level 2 & 3 are in a nested <ul 2><li><ul 3><li></li></ul></li></ul> type menu shown separately?
          • 14701
          • 3 Posts
          I solved the problem with CSS so that the nested <ul> is displayed under the main <ul>.

          But I was actually looking for an wayfinder solution. The main menu has nothing do to with it
          because in this site it is another kind of menu.
          It’s about the sub menu and the sub-sub menu. They are spitted out nested by wayfinder, but
          i want them to be non nested. Like this:

          <ul id="submenu">
           <li>1</li>
          <li>2</li>
          </ul>
          <ul id="subsubmenu">
           <li>1</li>
           <li>2</li>
          </ul>
          


          Thanks in advance!