To configure parameters for a search form:

  1. Insert a search form within a web page or display template.

  2. Modify the HTML source code of the search form to include hidden variables with one or more of the parameters listed in the table above. In the following example, search results will be limited to items in folderID 27279861, folderID 27277842 and all descendant sub-folders of those two folders:

  3. <form action="/search.jsp" method="get">

    <input type="hidden" name="folderID" value="27279861">

    <input type="hidden" name="folderID" value="27277842">

    <input type="hidden" name="includeSubfolders" value="true">

    <input name="query" type="text">

    <input name="submit" type="submit">

    </form>

    In the next example, the search uses multiple hostID parameters (you can get the hostID values from the URL when you switch hosts from your navigation bar), and a typeID parameter for an extended content type called Web Page with body field. The search results will include items of that content type in any of the specified hosts:

    <form action="/search.jsp" method="get">

    <input type="hidden" name="hostID" value="[convio.com host ID]">

    <input type="hidden" name="hostID" value="[convio.com host ID]">

    <input type="hidden" name="typeID" value="13239">

    <input name="submit" type="submit">

    </form>

  4. Save and publish the page.