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
Copy file name to clipboardExpand all lines: docs/add-ons/search/advanced.md
+58-1Lines changed: 58 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -267,6 +267,63 @@ With this parameter, you can specify the css class you want the form to have, en
267
267
268
268
With this parameter, you can specify the css id you want the form to have.
269
269
270
+
### `orderby=`
271
+
272
+
orderby="entry_date"
273
+
274
+
The "orderby" parameter sets the display order of the entries. The available values for this property are `entry_date`, `most_comments`, `recent_comment`, `title`, `status`, `entry_id`, `url_title`, `edit_date`, `comment_total`, `expiration_date`, `view_count_one`, `view_count_two`, `view_count_three`, `view_count_four`.`
275
+
276
+
If this parameter is not set, it will default to ordering by entry date.
277
+
278
+
### `sort=`
279
+
280
+
sort="asc"
281
+
282
+
sort="desc"
283
+
284
+
The sort order can be "asc" (ascending order or "oldest item first") or "desc" (descending order or "newest item first"). If you do not use a sort order the default is desc.
285
+
270
286
## Variables
271
287
272
-
A full discussion of the available variables is not feasible there is a great deal of interdependence between the various form fields, variables, and javascript functions. The Parameters can be used to modify how the search behaves. If you wish to modify the search form itself, simply use the default form as a base and customize it from there.
288
+
### `channel_names`
289
+
290
+
Pre-populated string containing list of `<option>` tags containing channels that can be used to select channel to search in.
291
+
292
+
### `lang:...`
293
+
294
+
Should you be willing to use the language string from ExpressionEngine language files to build the search, the following are available:
Copy file name to clipboardExpand all lines: docs/add-ons/search/simple.md
+16Lines changed: 16 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -182,6 +182,22 @@ With this parameter, you can specify the css class you want the form to have, en
182
182
183
183
With this parameter, you can specify the css id you want the form to have.
184
184
185
+
### `orderby=`
186
+
187
+
orderby="entry_date"
188
+
189
+
The "orderby" parameter sets the display order of the entries. The available values for this property are `entry_date`, `most_comments`, `recent_comment`, `title`, `status`, `entry_id`, `url_title`, `edit_date`, `comment_total`, `expiration_date`, `view_count_one`, `view_count_two`, `view_count_three`, `view_count_four`.`
190
+
191
+
If this parameter is not set, it will default to ordering by entry date.
192
+
193
+
### `sort=`
194
+
195
+
sort="asc"
196
+
197
+
sort="desc"
198
+
199
+
The sort order can be "asc" (ascending order or "oldest item first") or "desc" (descending order or "newest item first"). If you do not use a sort order the default is desc.
200
+
185
201
## Variables
186
202
187
203
There are no specific variables associated with the Simple Search Form. You may use the [{path=''}](templates/globals/path.md) Global Variable to create a link to an Advanced Search Form if you wish.
0 commit comments