We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 10449
    • 956 Posts
    Is there a way to tell Wayfinder to list only one particular folder?

    I’ve set up a multilanguage site, where each language version set is in its own, separate folder. So far so good.

    Now I want Wayfinder to generate only the appropriate folder-contents of the current language.

    e.g. folder = menuindex = 1 = german

    Is there an attribute like "menuindex" I can use?
    This doesn’t work, unfortunately: [!Wayfinder? &startId=`0` &menuId=`[*menuindex*]`!]

    I’ve searched the forum and read the instructions, but couldn’t find anything. Is there a hack/workaround for this?

    Of course, I could just go and not use WF at all, using my own PHP and mySQL-selects via include(), but I’d prefer to solve this via Wayfinder...
      • 33337
      • 3,975 Posts
      You can use something like this:

      [!Wayfinder? &startId=`[[UltimateParent]]`!]

      where [[UltimateParent]] snippet determines the parent of current document e.g.

      - en
      -- doc1
      - fr
      -- doc2

      when you will on doc2, WF renders the childs of "fr".

      Hope this helps.
        Zaigham R - MODX Professional | Skype | Email | Twitter

        Digging the interwebs for #MODX gems and bringing it to you. modx.link
        • 10449
        • 956 Posts
        oh, wait...

        I think I confused the menu-index you see when editing a page (below the input fields, with <> buttons ) with the "normal" item index numbers (id).
        I was passing the menu index number to Wayfinder, not the id-number.
        A bit confusing when you just started using modx + WF... but hey, live + learn. grin

        Thanks!