A user-filtered list with categories

  • Assuming you are using a Perch-templated form like the example in the docs:


    You can generation the options in PHP:

    HTML
    1. <perch:input type="select" id="location" options=",<perch:forms id="cat_opts">">



    Or you can generate the options in a separate template:

    categories/select_opts.html:

    HTML
    1. <perch:category id="catTitle">|<perch:category id="catSlug"><perch:if not-exists="perch_item_last">,</perch:if>