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

    I got two menus. One that is only configured like the following:
    [[!Wayfinder? &startId=`0` &level=`1` &outerTpl=`topMenu_out` &hereClass=`selected` &rowTpl=`topMenu_normal`!]]

    Well the second I want to put somewhere in a different div on the left. But is there a way to set wayfinder to only display the sub_menus from the current menu? I had a look at the documentation but I couldn't seem to find what I require in there.

    The resultvertical menu I want will look like:
    <h3>SubMenu</h3>
    <ul>
    <li ><a href="index.html">SubSubMenu</a></li>
    <li ><a href="index.html">SubSubMenu</a></li>
    <li ><a href="index.html">SubSubMenu</a></li>
    </ul>
    <h3>Another_SubMenu</h3>
    <ul>
    <li ><a href="index.html">Another_SubSubMenu</a></li>
    <li ><a href="index.html">Another_SubSubMenu</a></li>
    </ul>

    My document system looks like:
    TopMenuItem_1
    --SubMenu_1_1
    ----SubSubMenu_1_1_1
    ----SubSubMenu_1_1_2
    ----SubSubMenu_1_1_3
    --SubMenu_1_2
    ----SubSubMenu_1_2_1
    ----SubSubMenu_1_2_2
    ----SubSubMenu_1_2_3
    --SubMenu_1_3
    ----SubSubMenu_1_3_1
    ----SubSubMenu_1_3_2
    TopMenuItem_2
    --SubMenu_2_1
    --SubMenu_2_2
    TopMenuItem_3
    --SubMenu_3

    Hope I kind of explained my problem. I'd really appreciate to hear where I should look.
      • 22427
      • 793 Posts
      But is there a way to set wayfinder to only display the sub_menus from the current menu?
      This is the normal behaviour of Wayfinder if you use the parameter
       &startId=`[*id*]`
      - for Evo; for Revo it's
      &startId=`[[*id]]`
      in the WF call for the second menu.
      You should add
      &level=`1`
      to prevent WF from displaying sub_sub_menus.
        • 36568
        • 2 Posts
        Great, thanks I'll try that =)
        I never heard of the [[*id]] tag. That was exactly the kind of thing I was looking for. (I think)