We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10720
    • 26 Posts
    Hello
    I’m new to modX and - it’s sexy....
    it’s so flexible I can do all I want; only one task I can not figure out, if it is possible at all:
    I want to directly show one submenu item with its document when I click on a main menu item. That is, not to show something like an "overview page" over the submenu, but directly a document in the submenu.

    Example:

    Food
    meat
    vegetables
    cakes
    Beverages
    beer
    whisky
    soft drinks
    cocktails

    clicking "beverages" should open the submenu item "whisky" and the whisky document directly.

    Thanx!
    Gertrud
      • 25663 MODX Staff
      • 12,272 Posts
      Look at the Wayfinder snippet. There is a parameter which escapes me at the moment, but a quick review of the documentation will reveal that. To learn more about MODx in general and Wayfinder see http://modxcms.com/learn/it.html (look for the Wayfinder eBook in the right column)
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
        • 10720
        • 26 Posts
        Thanx for your early answer ;-) I have been studying kandango’s wonderfull guide to wayfinder - but I couldn’t find a solution for the task
          • 25663 MODX Staff
          • 12,272 Posts
          From assets/snippets/wayfinder/wayfinder.documentation.html:

          &hideSubMenus set true to only output the active submenu

            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 10720
            • 26 Posts
            Quote from: Lucy at Apr 28, 2009, 06:32 AM

            I use the FirstChildForward snippet and it works perfectly. Apparently there’s also a FirstChildRedirect snippet. Not sure what the difference is between these two...
            Lucy, thanxs, that seems to be it I’ll try!
            I found the code as well as the issues with FirstChildRedirect here:
            http://modxcms.com/forums/index.php?topic=15811.0
              • 10720
              • 26 Posts
              it’s me again...
              where do I have to put this snippet?
                • 4310
                • 2,310 Posts
                Put [!FirstChildRedirect!] in the content of the parent page.
                It should then redirect to the first child page smiley
                  • 10720
                  • 26 Posts
                  omg how easy . . .
                  thanx!