search
Please see Core Concepts - Search for an in-depth discussion of this tag.
Parameters
- keywords
- masterpage
- limit
keywords
This parameter can set to the terms to be searched. If skipped, the search tag will look for a GET parameter named āsā in the querystring for the search terms.
masterpage
Normally pages of all available templates will be searched for the specified terms. You can set this parameter to limit he search to only some of the templates or to exclude certain templates from the search.
<cms:search masterpage='news.php' >..</cms:search>
This example would search only pages of news.php.
<cms:search masterpage='news.php, blog.php' >..</cms:search>
This example would search only pages of news.php and blog.php.
<cms:search masterpage='NOT news.php' >..</cms:search>
This example would search pages of all templates except news.php.
limit
Limit parameter can be set to display only a limited number of pages that were found. The rest of the pages can be displayed in a paginated manner (See Pagination).
Variables
For each page found, all the variables normally available in its page-view will be available. Apart from these, the following variables are also made available -
- k_search_title
- k_search_content
- k_search_excerpt
- k_search_query
Please see Core Concepts - Search for details.