Skip to content

Commit ba67817

Browse files
authored
Update tags.md
1 parent 5048c86 commit ba67817

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

docs/add-ons/pro-search/tags.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,22 @@ Use this parameter to pass through a previously executed encoded search query. N
186186
[TOC=4 hide]
187187

188188
The Results tag supports:
189-
* all parameters from the native channel:entries tag, and
190-
* any parameters made available by the Filters in your query.
189+
* all parameters from the native `channel:entries` tag, and
190+
* the parameters listed below, and
191+
* any additional parameters made available by the Filters referenced by your query.
191192

192-
In addition to those, the following parameters are available to all results. Any parameters set in the results tag will override the ones in the given query.
193+
Any parameters set in the `pro_search:results` tag will override the ones in the provided query.
193194

194-
NOTE: **Note:** The Keywords filter has a parameter for `collection`. If this is not set, the keywords Filter will search ALL collections. The `channel` parameter is available to any results set, including a keywords search, but for keywords searches, it is most efficient to set the specific collection(s) you want to use, rather than limit by channel. This is not used to output the content from a matching result.
195-
196-
{exp:pro_search:results query="{segment_3}" default:limit="10"}
195+
{exp:pro_search:results query="{segment_3}" default:limit="10" }
196+
<p>You searched for "{pro_search_keywords}".</p>
197197
{if count == 1}<ol>{/if}
198-
<li><a href="{comment_url_title_auto_path}">{title}</a></li>
198+
<li><a href="{auto_path}">{title}</a></li>
199199
{if count == total_results}</ol>{/if}
200200
{if no_results}No search results{/if}
201201
{/exp:pro_search:results}
202202

203+
NOTE: **Note:** The Keywords filter has a unique parameter: `collection`. If the `collection` parameter is not set, the keywords Filter will search ALL collections. The `channel` parameter is available to limit any results set, including a result set that used the keywords Filter. But for keywords searches, it is much more efficient to define the specific collection(s) you want to search via the `collection` parameter, rather than limit the results by `channel` after searching EVERY collection.
204+
203205
#### `alias:parameter=`
204206

205207
Point a given parameter to any other, so parameter x gets treated like parameter y. For example, to use the param `q` as an alias for `keywords`, use `alias:keywords="q"`. Useful if you have previous or multiple search forms with different names for the same parameters, and you want to have one result page.

0 commit comments

Comments
 (0)