Skip to content

Commit 79704de

Browse files
authored
Merge pull request #698 from ic360-com/patch-2
Pro Search docs edits for form tags
2 parents cd39652 + d02781f commit 79704de

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

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

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,15 @@ Set to no to have a given query overwrite a valid shortcut. Defaults to yes (a s
4343

4444
#### form_attribute
4545

46-
Specifies any html attribute you want the form to have. For example: form_id="search" will add id="search" to the
46+
Specifies any html attribute you want the form to have. For example: form_id="search" will add id="search", or form_class="searchform" will add class="searchform" to the tag.
4747

48-
tag. query Use this parameter to pass through a previously executed encoded search query. Not needed when not encoding queries.
48+
{exp:pro_search:form form_id="search" form_class="searchform"}
4949

50-
{exp:pro_search:form form_id="search"}
50+
#### query
51+
52+
Use this parameter to pass through a previously executed encoded search query. Not needed when [not encoding queries](https://docs.expressionengine.com/latest/add-ons/pro-search/settings.html#encode-query).
53+
54+
{exp:pro_search:form query="{segment_3}"}
5155

5256
#### required
5357

@@ -667,4 +671,4 @@ Alternative syntax for the native {if no_results}{/if} conditional.
667671
{exp:pro_search:suggestions keywords="jongle" keywords:lang="en" limit="1"}
668672
Did you mean {suggestion}?
669673
{if no_suggestions}No suggestions found.{/if}
670-
{/exp:pro_search:suggestions}
674+
{/exp:pro_search:suggestions}

0 commit comments

Comments
 (0)