We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 33300
    • 18 Posts
    Hi folks!

    I have a little problem with wayfinder for my sub-navigation. everything works fine in the main navi!

    heres my site tree:


    -folder (not published) (6)
    - Site1 (7)
    -Sub site1 (8)
    -Sub site2 (9)
    -Site2 (10)
    -Sub site1 (11)
    -Sub site2 (12)

    my main navi:


    [!Wayfinder?&startId=`6`&level=1&outerTpl=main_navi&rowTpl=inner_navi!]

    my sub navi:


    [!Wayfinder?&startId=`6`&level=2&outerTpl=main_subnavi&rowTpl=inner_subnavi!]

    i want the sub-navigation to show all the sub-sites of a main Site (f.e Site1), but I dont get the items from lvl2. Hope someone can tell me what I did wrong.

    greetings z00la
      • 34162
      • 1 Posts
      Don’t know if it’s a typo, but you should place all values between backticks ` `

      So your call should be:
      [!Wayfinder?&startId=`6` &level=`2` &outerTpl=`main_subnavi` &rowTpl=`inner_subnavi`!]
        • 33300
        • 18 Posts
        oh....forgot about that wink
        Still it dont works the way i want it.

        When Im on Site1 i want Sub-Site1, Sub-Site2 to appear in the sub navi, but i see the same navigation as i see in the main navi (Site1,Site2)...
        I think its something with the level, i thought when i tell him &level=2 he takes all the sub sites and show them, but hes not doing so.

        greetings z00la
          • 29181
          • 480 Posts
          I’m no expert but I think you need to use SectionRoots.

          That is how I did the navigation at olson.bz . Basically the wayfinder snippet keeps looking at the parent document until it finds one of the id’s listed in the SectionRoots call.

          So in your case it would be a call something along these lines:

          [!Wayfinder?&startId=`[[SectionRoots?Sec_roots=7,10]]`&level=`2`&outerTpl=`main_subnavi`&rowTpl=`inner_subnavi`!]

          You can find the sectionRoots snippet in the resources. Another option could be to use the UltimateParent snippet.

          Hope that helps,
          Taff
            Adrian Lawley: www.adrianlawley.com
            • 33300
            • 18 Posts
            Made my day Taff, SectionRoot did it grin

            thx a lot!

            greetings z00la
              • 7455
              • 2,204 Posts
              and when you need to go back up another tree use MenuDealer
                follow me on twitter: @dimmy01
                • 33300
                • 18 Posts
                thats a nice one too dimmy!!

                thx a lot guys, im prepaired for navi now tongue

                greetings z00la