You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`exact`: search terms must exactly match the words in the article in the order given. This mode is also automatically selected if the search term is surrounded with double quotes. \\
@@ -51,7 +47,7 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
: HTML `placeholder` attribute to be applied to search `input` field.
50
+
: HTML `placeholder` attribute to be applied to the search `input` field.
55
51
: **Default:** unset.
56
52
57
53
`section="section name"`
@@ -62,22 +58,6 @@ Tag will accept the following attributes (**case-sensitive**) as well as the {%
62
58
: Sets the `size` attribute of the search `input` field.
63
59
: **Default:**`15`.
64
60
65
-
### Common presentational attributes
66
-
67
-
These attributes, which affect presentation, are shared by many tags. Note that default values can vary among tags.
68
-
69
-
`class="class name"`
70
-
: HTML `class` to apply to the `wraptag` attribute value.
71
-
: **Default:** tag name or unset (see [class cross-reference](/tags/tag-attributes-cross-reference#class)).
72
-
73
-
`label="text"`
74
-
: Label prepended to item.
75
-
: **Default:** unset (but see [label cross-reference](/tags/tag-attributes-cross-reference#label) for exceptions).
76
-
77
-
`wraptag="element"`
78
-
: HTML element to wrap markup, specified without brackets (e.g. `wraptag="div"`).
79
-
: **Default:** unset (but see [wraptag cross-reference](/tags/tag-attributes-cross-reference#wraptag) for exceptions).
80
-
81
61
## Examples
82
62
83
63
### Example 1: Display a search input form
@@ -88,13 +68,13 @@ These attributes, which affect presentation, are shared by many tags. Note that
88
68
89
69
### Example 2: Elements required for building a customized HTML search form
90
70
91
-
You can build your own custom search form by specifying `form="form-name"` inside the `<txp:search_input />` tag:
71
+
Build your own custom search form by specifying `form="your-form-name"` inside the `<txp:search_input />` tag:
92
72
93
73
~~~html
94
-
<txp:search_inputform="form-name" />
74
+
<txp:search_inputform="search_box" />
95
75
~~~
96
76
97
-
You would then need to build your Form (i.e. `form-name`), and the absolute minimum Textpattern tags and attributes required would be:
77
+
You would then need to build your Form called `search_box`. It could contain any fields and markup you wish to suit your site. The absolute minimum Textpattern tags and attributes required would be:
98
78
99
79
~~~html
100
80
<formaction="<txp:site_url />">
@@ -106,10 +86,10 @@ When using a customized form template, Textpattern doesn't automatically wrap th
106
86
107
87
Other tags used: [site_url](/tags/site_url).
108
88
109
-
Note: Textpattern will use a user defined form named `search_results`, or an internally defined default form if no search result form is defined by you.
89
+
Note: When displaying search results, Textpattern will use a user defined form named `search_results`, or an internally defined default form if no search result form is nominated/defined.
110
90
{: .alert-block .information}
111
91
112
-
### Example 3: Minimal search input form without label or button (but still accessible)
92
+
### Example 3: Minimal search input form without label or button (yet still accessible)
0 commit comments