We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 35094
    • 25 Posts
    I am using the following Wayfinder call-

    [[!Wayfinder? startId=`17` &level=`0` &outerTpl=`MenuOuter` &rowTpl=`MenuRow` &firstClass=`` &lastClass =`` ]]

    Is it possible to dynamically set startId to the Id of a parent?

    Thanks
      • 9102 ☆ A M B ☆
      • 318 Posts
      I would think you could just pass the field [[*parent]] to the snippet, so:

      [[!Wayfinder? startId=`[[*parent]]` &level=`0` &outerTpl=`MenuOuter` &rowTpl=`MenuRow` &firstClass=`` &lastClass =`` ]]
      


      Does that not work? I haven’t tested it, but I would think the parser would evaluate [[*parent]] first and then pass it to the snippet.
        • 35094
        • 25 Posts
        Works!

        Many thanks!