Skip to content

Commit a20893f

Browse files
authored
Update tags.md
'class' info added to form_attribute to help people where to find out about a class name. I searched the Docs but couldn't find it. Fixed 'query' description as formatting broken here.
1 parent cd39652 commit a20893f

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.
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)