We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5393
    • 63 Posts
    hi:

    in the menu I have something like:
    A
    -a1
    -a2
    B
    C
    D

    If I have a menu and I want to include a1,a2,b,c,d, how to set up wayfinder?

    I use this code:
    [[Wayfinder? &startId=`0` &includeDocs=`a1,a2,b,c,d`]]
    and at last in my menu I got b,c,d only.

    how to make it work. thx
    ernest
      • 4310
      • 2,310 Posts
      Because you have used &includeDocs without including A, then none of A’s children would show.
        • 5393
        • 63 Posts
        how should I rewrite this wayfinder then? please tell me. thanks.
          • 4310
          • 2,310 Posts
          If you want all docs in the menu then just remove the &includeDocs parameter.
          To not have A, but have A’s children might be trickier, you could have two Wayfinder calls.
            • 5393
            • 63 Posts
            that’s my wayfinder code:

            [[Wayfinder? &startId=`0` &parentClass=`A` &includeDocs=`a1,a2`]]
            [[Wayfinder? &startId=`0` &includeDocs=`B,C,D`]]

            in the end only B,C,D show up...

            ernest
              • 4310
              • 2,310 Posts
              [[Wayfinder? &startId=`99`]]

              Where 99 is the id of doc A should give you the children of A
                • 5393
                • 63 Posts
                It works! cool! thanks so much.

                that’s my code:

                [[Wayfinder? &startId=`28` &includeDocs=`40,45`]]
                [[Wayfinder? &startId=`0` &includeDocs=`56,59,58`]]

                if I want to add a class to this navigation, should I make it like that?

                [[Wayfinder? &startId=`A` &outerClass=`navigation`&includeDocs=`a1,a2`]]
                [[Wayfinder? &startId=`0` &outerClass=`navigation`&includeDocs=`B,C,D`]]

                thanks!





                  • 4310
                  • 2,310 Posts
                  Download the guide to see all the parameters, placeholders etc.