Jump to main content Jump to doc navigation

SimpleSearchForm's tpl Chunk

This is the Chunk displayed with the &tpl property on the SimpleSearch snippet.

Default Value

<form class="sisea-search-form" action="[[~[[+landing:default=`[[*id]]`]]]]" method="[[+method:default=`get`]]">
    <label for="[[+searchIndex]]">[[%sisea.search? &namespace=`sisea` &topic=`default`]]</label>
    <input type="text" name="[[+searchIndex]]" id="[[+searchIndex]]" value="[[+searchValue]]" />
    <input type="hidden" name="id" value="[[+landing:default=[[*id]]]]" />
    <input type="submit" value="[[%sisea.search? &namespace=`sisea` &topic=`default`]]" />

Available Placeholders

Name Description
landing The ID of the Resource to show search results on. Defaults to the current Resource.
method Whether to submit over GET or POST. Defaults to GET.
searchValue The current search value. Defaults blank unless a prior search has been performed.
searchIndex The REQUEST var used for the search parameter.

See Also

  1. SimpleSearch.SimpleSearch
    1. SimpleSearch.SimpleSearch.containerTpl
    2. SimpleSearch.SimpleSearch.currentPageTpl
    3. SimpleSearch.SimpleSearch.pageTpl
    4. SimpleSearch.SimpleSearch.tpl
    5. SimpleSearch.Faceted Search Through PostHooks
  2. SimpleSearch.SimpleSearchForm
    1. SimpleSearch.SimpleSearchForm.tpl
  3. SimpleSearch.Solr