We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 13978
    • 2 Posts
    Well sry for that,
    but i guess the CSS Solution should work solid anyways
    in your Template give the Sidebar a UNIQUE ID like this example:

    <div class="sidebar1" id="[[*menutitle]]"></div>

    this gives you access via CSS to a unique identifier for your sidebar Element.
    Then simply use something like this in your CSS file to hide the submenu where you dont want it to be shown:

    #Home .nav {display:none}
    #About .nav {display:none}

    I know this is not a real MODX solution but i comes in handy for small websites where you just wanna hide certain stuff with CSS
      • 35628
      • 8 Posts
      Still no luck guys...

      So here’s what I did now.

      The home page: I now using its own template with (1) Wayfinder and the subnav doesn’t exist.
      Works perfect! Using this [[!Wayfinder? &startId=`0` &level=`1`]]

      The Other pages: are using an other template with (2) Wayfinders, one for main nav and one
      for the subnav using this: [[!Wayfinder? &level=`2`]]

      AND ITS STILL BROKEN....:(

      The ABOUT sub navs is the only one that appears on all pages.

      Thanks for your help!!!


        • 35628
        • 8 Posts
        I just ried using this on for the subnav: [[!Wayfinder? &level=`2`]]
        and it works! But when I click on a subnav link – it disappears.... UURRGGH..

          • 35628
          • 8 Posts
          This one too: [[!Wayfinder?&level=`2` &hideSubMenus=`false`]] – No luck...
            • 33968
            • 863 Posts
            If you don’t specify a startId, Wayfinder will use the current doc id as a starting point.

            Your ’About’ page has children, so using ’About’ as the starting point you will see the docs below listed.
            However the 2nd level ’About’ pages have no children, so when they are the start point Wayfinder will output nothing. That’s why the menu is ’disappearing’. Make sense?

            You’ll need to use something like this as was suggested earlier:
            [[!Wayfinder? &startId=`[[UltimateParent? &topLevel=`1`]]`]]
            

            which will travel up the tree from the current document and start your subnav menu from the top parent container (in this case, the ’About’ container).
            Make sure UltimateParent is installed or it won’t work smiley
              • 35628
              • 8 Posts
              ITS WORKING NOW!! SWEET! THANKS FOLKS!!
                • 35628
                • 8 Posts
                I Never had - UltimateParent installed smiley
                  • 33968
                  • 863 Posts
                  Glad you sorted it out!
                  When I first started with Revo I wondered why Wayfinder, etc were not working... then realised I didn’t have any snippets installed. Easy mistake to make coming from Evo which ships with those snippets included smiley