We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 26113
    • 88 Posts
    Is it possible to create a select menu using wayfinder?

    I created a chunk with the following:
    <option>
    [+wf.wrapper+]
    </option>


    named caseList

    The select menu is on a form in the contents of a page.
    So within select tags, I should be able to place wayfinder code:

    [!Wayfinder? &startId=`0` &outerTpl=`caseList` &level=1!]


    When I save, the wayfinder code dissappears and nothing is rendered.
    Can I not place this in the [*content*]?

    Is there a better way?
    Thanks
    Rich
      • 27376
      • 576 Posts
      It is possible, you will need to edit more than one template though Specifically the RowTpl template as well (because you need to change it to <option ...>). Check the wayfinder documentation and you’ll see which other templates you need to edit. Also, all of your snippet parameters must be in backticks (even integers). So your snippet call would look like this:
      [!Wayfinder? &startId=`0` &outerTpl=`caseList` &level=`1`!]