Token
|
<$search/$> |
| Purpose |
This token outputs a search form that allows the user to enter a search term and click a button to search your site for content. Matches are displayed on an automatically generated search results page using the default template selected for your website. Simply add this token to your templates and full search functionality is implemented on your site.
|
Attributes
|
- buttonText= specifies the text that appears on the submit button for your search form.
- labelText= specifies the text that appears as a label for the input field on your search form.
|
CSS
|
The search form output is wrapped in a <div> tag with the class of "search". The labelText is rendered as a <span>, the text <input> is classed as "searchInput", and the submit button <input> is classed as "searchButton".
|
Example Usage
|
Use this token to create a search form on your site:
<$search buttonText="Click to Search" labelText="Search this Website"/$>
|