We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 27431
    • 8 Posts
    Hi guys, im back with a questoin...

    Im trying to output an submenu, and only the submenu. That all worked well after playing around a bit, but if i press on the submenu item, it disapears. And i have nu clue how to keep it visible.

    Maybe to explain it a bit better... If i press the submenu item (3th lvl), it looks like it goes another level deeper, but there isn’t a 4th lvl!

    html (this only shows 2 items out of 3..:

    <div class="header"><div class="subnavi">
    [!Wayfinder? &level=`2`!]
    </div>


    screenshot of the menu tree:


    I would like to only show Home / Visie & Drijfveren if one of these menu items is selected,

    Screenshot of the menu / site:


    as you can see, only 2 items are visible, if i press on one of those 2, they both disapear!

    Im looking forward to an answer!

    Thanks, Sjardo
      • 26016
      • 561 Posts
      Hi,
      Your Wayfinder call can be more specific. I think the "level 2" part may be cutting you off. Trying using the &start parameter. For instance:

      [!Wayfinder? startID=`[*id*]` &level=`2`!]


      Or maybe...

      [!Wayfinder? startID=`[*parent*]` &level=`2`!]


      And see what that does. You’ll probably need to experiment with parameters to get what you want, and/or adjust your template.
      http://www.muddydogpaws.com/development/wayfinder/parameters.html

      As to why you only see the two menu items... hard to say without a link. I’m guessing that the 3rd thing is being made invisible by CSS, maybe. smiley

      Cheers, Dave
        MODx and Wordpress development
        Linux, PHP 5.2, MySQL 5.0, Evo 1.05, Revo 2.08-pl, Firefox 4
        • 27431
        • 8 Posts
        [!Wayfinder? startID=`[*parent*]` &level=`2`!]


        That one worked well, but if i press one of the submenu’s, it will go to another page (like it has to) but the submenu disapears. Any idea how come?

        Example: I press Home, Visie and then visie should be selected in the wayfinder, but the whole sub menu disapears.

        I cant see the submenu in the source either. Any idea how come?

        **Running on a local host, so no link sad
          • 28042 ☆ A M B ☆
          • 24,524 Posts
          If there is a space after the ? then the following parameter begins with &.
          [!Wayfinder? &startID=`[*parent*]` &level=`2`!]
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org
            • 27431
            • 8 Posts
            Yes sir, its exactly what you posted.

            Damn, im looking for the answer for 2 days, even read the whole 146 pages of the Instruction document tongue

            Any other option to solve the solution?
              • 28042 ☆ A M B ☆
              • 24,524 Posts
              Maybe the [[UltimateParent]] snippet would work instead of [*parent*]?
                Studying MODX in the desert - http://sottwell.com
                Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                Join the Slack Community - http://modx.org
                • 27431
                • 8 Posts
                [!Wayfinder? &startID=`[[UltimateParent]]` &level=`2`!]


                Its not the solution either sad

                * I tried it with and without the ` `

                ** Can it has something to do with an javascript I used (Cufon)?
                  • 28042 ☆ A M B ☆
                  • 24,524 Posts
                  Try it with &startId instead of &startID; that may have been the problem all along.
                    Studying MODX in the desert - http://sottwell.com
                    Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
                    Join the Slack Community - http://modx.org
                    • 27431
                    • 8 Posts
                    [!Wayfinder? &startId=`[*parent*]` &level=`2`!]


                    Thats the solution! Thank you very much. Only little problem is that if i go to "home" or "Info" it gives the whole menu, but im using the re-direct to the first Child, so i wont see it!

                    Thank you very much for all the efford!