Skip to content

Commit 0919002

Browse files
authored
Merge pull request #1131 from ExpressionEngine/7.dev
Pushing a bunch of docs updates live
2 parents bb115c3 + 41fbd77 commit 0919002

File tree

11 files changed

+166
-86
lines changed

11 files changed

+166
-86
lines changed

docs/_downloads/sample-atom.txt

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
{exp:rss:feed channel="{master_channel_name}"}
55

66
<?xml version="1.0" encoding="{encoding}"?>
7+
<!-- <?xml-stylesheet type="text/xsl" href="{path=site/atom-xsl}"?> -->
78
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="{channel_language}">
89

910
<title type="text"><![CDATA[{channel_name}]]></title>
10-
<subtitle type="text"><![CDATA[{channel_name} - {channel_description}]]></subtitle>
11+
<subtitle type="text"><![CDATA[{channel_description}]]></subtitle>
1112
<link rel="alternate" type="text/html" href="{channel_url}" />
1213
<link rel="self" type="application/atom+xml" href="{path='{atom_feed_location}'}" />
1314
<updated>{gmt_edit_date format='%Y-%m-%dT%H:%i:%sZ'}</updated>
14-
<rights>Copyright (c) {gmt_date format="%Y"}, {author}</rights>
15-
<generator uri="https://expressionengine.com/" version="{version}">ExpressionEngine</generator>
16-
<id>tag:{trimmed_url},{gmt_date format="%Y:%m:%d"}</id>
15+
<rights>Copyright (c) {gmt_edit_date format="%Y"}, {author}</rights>
16+
<generator uri="https://expressionengine.com/">ExpressionEngine</generator>
17+
<id>tag:{trimmed_url},{gmt_edit_date format="%Y:%m:%d"}</id>
1718

1819
{exp:channel:entries channel="{master_channel_name}" limit="15" dynamic_start="on" disable="member_data|pagination"}
1920
<entry>

docs/add-ons/file.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ In addition, the File module supports [Pagination](templates/pagination.md).
2323

2424
NOTE: **Note:** If you're looking for how to use file fields in your channel entries loops, you should look at [the file field variable usage documentation](fieldtypes/file.md#template-tags) in the channel fields documentation.
2525

26+
NOTE: **Note:** If you uploaded the file using the Textarea, Text Input or RTE fields, you should look at [the textarea field documentation](fieldtypes/textarea.md#filexxurl-tag--inserting-a-file).
27+
2628
The File Entries tag allows you to display files and their associated meta-data on the frontend through the use of standard ExpressionEngine tags.
2729

2830
Here is a simple example of a possible usage of this tag:
@@ -35,7 +37,7 @@ Here is a simple example of a possible usage of this tag:
3537
{/categories}
3638

3739
{if url:small}
38-
<p><a href="{id_path='gallery/comments'}"><img src="{url:small}" width="{width:small}" height="{height:small}" alt="{title}" title="{title}" /></a></p>
40+
<p><a href="{id_path='gallery/comments'}" title="{title}"><img src="{url:small}" width="{width:small}" height="{height:small}" alt="{title}" /></a></p>
3941
{/if}
4042

4143
{description}
@@ -314,7 +316,7 @@ Multiple instances of the {switch=} tag may be used and the system will intellig
314316

315317
### `{title}`
316318

317-
The title of the entry.
319+
The title of the file.
318320

319321
### `{total_results}`
320322

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

Lines changed: 29 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,23 @@
1010

1111
[TOC]
1212

13+
Different type of Filters are automatically used by the `pro_search:results` tag when the query form uses specific field names, or the results tag includes specific parameters.
14+
15+
For instance, if a search form contains a `keywords` field, the [Keywords filter](#keywords-filter) will be invoked. If the results tag has a `distance:to="cf_entry_lat|cf_entry_long"` parameter, the [Distance filter](#distance-filter) will be used. If the `search:field_name` parameter or field is used, Pro Search will use the [Field Search filter](#field-search) on the results
1316

1417
## Keywords Filter
1518

16-
The Keywords filter lets you filter entries by search terms (ie. keywords). You need to create at least one Collection to use the Keywords filter. (You don't need a collection for other types of filters.)
19+
The Keywords filter lets you filter entries by search terms (ie. keywords) and calculates a relevance score for each item in the search results.
1720

18-
Using the Keywords filter also adds a relevance score to the search results. To further fine-tune a keyword search, the following parameters are available.
21+
NOTE: **Note:** You need to create at least one [Collection](/add-ons/pro-search/collections.md) to use with the Keywords filter. (You don't need to create a collection to use the other types of filters, just when using Keywords.)
1922

23+
To further fine-tune a keyword search, the following parameters are available.
2024

2125
### Parameters
2226

2327
#### collection
2428

25-
Limit search results to given collection names or IDs. If this is not specified and keywords are given, results will use all collections
29+
Limit search results to specified [collections](/add-ons/pro-search/collections.md) (names or IDs). If this parameter is not used and keywords are being searched, EE will search in all collections, so it's best to use this rather than `channel=` in the results.
2630

2731
collection="news|staff"
2832

@@ -173,7 +177,7 @@ NOTE: **Note:** When enabled, inflections and stems are only applied to keyword
173177

174178
## Categories
175179

176-
You can use the native `category` parameter to filter by category. For more advanced filtering by category, you can also divide categories into groups. The group syntax lets you combine AND and OR filtering (category 1 or 2 and category 3 or 4), as parameters are always combined with AND.
180+
Use the native `category` parameter to filter by category. For more advanced filtering by category, you can also divide categories into groups. The group syntax lets you combine AND and OR filtering (category 1 or 2 and category 3 or 4), as parameters are always combined with AND.
177181

178182
### `category`
179183

@@ -187,27 +191,28 @@ NOTE: **Note:** Use category IDs instead of URL titles for better performance.
187191

188192
## Distance
189193

190-
You can use the Distance filter to limit results by a given maximum distance. This filter prefers for you to use two channel fields where latitude and longitude values are stored. Alternatively, you can use a single field where the two values are separated by a comma. Using the Distance filter will limit results to entries that actually have latitude and longitude values entered.
194+
Use the Distance filter to limit results by a given maximum distance. This filter prefers for you to use two channel fields where latitude and longitude values are stored. Alternatively, you can use a single field where the two values are separated by a comma. Using the Distance filter will limit results to entries that actually have latitude and longitude values entered.
191195

192196
### Parameters
193197

194198
#### `distance:from`
195199

196-
Latitude and longitude values separated by a vertical bar, used to calculate the distance.
200+
The spot you're using to calculate the distance from. Must be latitude and longitude values separated by a vertical bar.
197201

198202
distance:from="52.163298|4.505547"
199203

200204
#### `distance:to`
201205

202-
The one or two channel field names that contain the latitude and longitude values separated by a vertical bar, used to calculate the distance.
206+
The one or two channel field names that contain the latitude and longitude values you're comparing distance to, separated by a vertical bar if two fields.
203207

208+
distance:to="store_geocode"
204209
distance:to="cf_entry_lat|cf_entry_long"
205210

206211
NOTE: **Note:** Use two separate fields instead of a single one for better performance.
207212

208213
#### `distance:radius`
209214

210-
The maximum distance between the from and to values. Leave blank for no maximum.
215+
The maximum distance allowable between the from and to values. Leave blank for no maximum.
211216

212217
distance:radius="50"
213218

@@ -219,17 +224,15 @@ The unit for the distances, either km, mi, m or yd. Defaults to km.
219224

220225
### Variables
221226

222-
The Distance filter makes this variable available in the [Results tag](/add-ons/pro-search/tags.md#exppro_searchresults):
223-
224227
#### `{pro_search_distance}`
225228

226-
The calculated distance in the given unit for this entry.
229+
The calculated distance in the given unit for this entry. The Distance filter makes this variable available in the [Results tag](/add-ons/pro-search/tags.md#exppro_searchresults).
227230

228-
NOTE: **Note:** Using the Distance filter will return the search results ordered by distance, ignoring keyword relevance if applicable. Override by explicitly setting the orderby parameter.
231+
NOTE: **Note:** Using the Distance filter will return the search results ordered by distance instead of keyword relevance (if applicable). You can override this by explicitly setting the orderby parameter to `pro_search_score`.
229232

230233
## Field Search
231234

232-
You can use the native `search:field_name` parameter to target specific fields. Additionally, Pro Search can target the entry’s ***title***, ***url_title***, ***status***, target [Grid](/fieldtypes/grid.md) columns, use multiple values for [numeric matching](/channels/entries.md#numeric-matching) (in combination with the `gt`, `gte`, `lt` and `lte` params), and use ***starts / ends with*** matching.
235+
Use the native `search:field_name` parameter to target specific fields, just like `channel:entries` does already. Additionally, Pro Search's `pro_search:results` can target the entry’s ***title***, ***url_title***, ***status***, and target [Grid](/fieldtypes/grid.md) columns. It can also use multiple values for [numeric matching](/channels/entries.md#numeric-matching) (in combination with the `gt`, `gte`, `lt` and `lte` params), and use ***starts / ends with*** matching.
233236

234237
### Parameters
235238

@@ -295,26 +298,34 @@ NOTE: **Note:** using `smart_field_search="yes"` can affect performance, dependi
295298

296299
## Ranges
297300

298-
You can use the Ranges filter to limit results by a given range, targeting a numeric or date field. If Pro Search detects that the given channel field for the range is a date field, it will try and convert the given range values to timestamps. This will allow custom date ranges as well.
301+
Use the Ranges filter to target a numeric or date field and limit results by a given range. If Pro Search detects that the given channel field for the range is a date field, it will try and convert the given range values to timestamps. This will allow custom date ranges as well.
299302

300303
### Parameters
301304

302305
#### `range:field_name`
303306

304-
Takes a from and to value, separated by a vertical bar: |. Use `field_name:column_name` to target Grid/Matrix columns (v4.2.0+).
307+
Takes both a from and to value, separated by a vertical bar: |. Use `field_name:column_name` to target Grid/Matrix columns (v4.2.0+).
308+
309+
range:ticket_price="20|80"
305310

306311
#### `range-from:field_name`
307312

308313
Takes a single from value. Use `field_name:column_name` to target Grid/Matrix columns (v4.2.0+).
309314

315+
range-from:hire_date="2020-01-01"
316+
310317
#### `range-to:field_name`
311318

312319
Takes a single to value. Use field_name:column_name to target Grid/Matrix columns (v4.2.0+).
313320

321+
range-to:age="65"
322+
314323
#### `range:min_field:max_field`
315324

316325
Where min and max are two separate (non-Grid/Matrix) fields. If a single value is given, entries will be returned where the value is between the min and max fields. If a from and to value is given, entries will be returned where the min and max fields overlap the given range.
317326

327+
range:min-deposit:max-deposit="1000"
328+
318329
#### `range-from:min_field:max_field`
319330

320331
Where min and max are two separate fields. Takes a single from value.
@@ -325,7 +336,7 @@ Where min and max are two separate fields. Takes a single to value.
325336

326337
#### `exclude`
327338

328-
Accepts parameter names. Excludes a given parameter value from the range itself. For example, `range:field_name="0|10" exclude="range:field_name"` will result in values `> 0` and `< 10` rather than `>= 0` and `<= 10`.
339+
Accepts parameter names. Excludes a given parameter value from the range itself. For example, `range:field_name="0|10" exclude="range:field_name"` will result in search values `> 0` and `< 10` rather than `>= 0` and `<= 10`.
329340

330341
NOTE: **Note:** For numeric fields, make sure the Field Content option in the field’s settings is set to Number, Integer or Decimal.
331342

@@ -346,7 +357,7 @@ Apart from any custom numeric or date field, the following standard channel fiel
346357

347358
## Relationships
348359

349-
You can use the Relationships filter to limit results by given parent or child entry IDs. The filter works for [Relationships fieldtypes](/fieldtypes/relationships.md).
360+
Use the Relationships filter to limit results by given parent or child entry IDs. The filter works for [Relationships fieldtypes](/fieldtypes/relationships.md).
350361

351362
### Parameters
352363

@@ -370,7 +381,7 @@ NOTE: **Note:** Use entry IDs instead of URL titles for better performance.
370381

371382
## Tags
372383

373-
You can use the Tags filter to limit results by given tag names or IDs. For more advanced filtering by tags, you can also divide tags into groups. The group syntax lets you combine AND and OR filtering (tag 1 or 2 and tag 3 or 4), as parameters are always combined with AND.
384+
Use the Tags filter to limit results by given tag names or IDs. For more advanced filtering by tags, you can also divide tags into groups. The group syntax lets you combine AND and OR filtering (tag 1 or 2 and tag 3 or 4), as parameters are always combined with AND.
374385

375386
### Parameters
376387

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,20 @@
99

1010
# Pro Search
1111

12-
ExpressionEngine’s native `channel:entries` tag allows you to fetch and filter entries in many ways by setting its parameters. The native Search module allows for filtering by keyword, but is limited in its capabilities. Pro Search combines the two into one module and then throw in extra features, filters, and a performance boost.
12+
ExpressionEngine’s native `channel:entries` tag allows you to fetch and filter entries in many ways by using its parameters. The native Search module, `search:search_results`, allows for searching by keyword, and returning results from many channels, but is very limited in its overall capabilities. Pro Search combines the two into one module and then throws in many extra features, powerful filters, and a performance boost.
1313

14+
Pro Search uses a custom [full-text](http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html) index instead of the raw entry data, which makes searching by keywords **Very Fast**. It also adds **relevance** to search results, which can be custom tuned by assigning **different weights** to any searchable field.
1415

15-
Searching by **keywords** uses a custom [full-text](http://dev.mysql.com/doc/refman/5.5/en/fulltext-search.html) index instead of the raw entry data, which makes Pro Search fast. **Very fast**. It also adds **relevance** to search results which can be influenced by applying **weight** to any searchable field.
16+
Apart from the powerful [keywords filter](/add-ons/pro-search/filters.md#keywords), and the ability to **use any native parameter as a search filter**, Pro Search adds several other filters to further enhance and refine your entries loop or your search results:
1617

17-
Apart from the powerful [keywords filter](/add-ons/pro-search/filters.md#keywords), and the ability to **use any native parameter as a search filter**, Pro Search adds several other filters to further enhance and refine your search results:
18-
19-
- Select any combination of [categories](/add-ons/pro-search/filters.md#categories);
20-
- Limit entries by a given [distance](/add-ons/pro-search/filters.md#distance) based on latitude/longitude values;
21-
- Target [specific fields](/add-ons/pro-search/filters.md#field-search), including Titles and Grid columns;
22-
- Define numeric or date [ranges](/add-ons/pro-search/filters.md#ranges);
23-
- Filter based on an entry’s [relationship](/add-ons/pro-search/filters.md#relationships) with other entries;
24-
- Filter by [Grid calculations](https://github.com/low/low_search_table) like min/max values or averages;
25-
- Filter by [Author fields](https://github.com/low/low_search_members) like screen name or email;
18+
- Category: Select any combination of [categories](/add-ons/pro-search/filters.md#categories);
19+
- Distance: Limit entries by a given [distance](/add-ons/pro-search/filters.md#distance) based on latitude/longitude values;
20+
- Fields: Target [specific fields](/add-ons/pro-search/filters.md#field-search), including Titles and Grid columns;
21+
- Number Ranges: Define numeric or date [ranges](/add-ons/pro-search/filters.md#ranges);
22+
- Relationships: Filter based on an entry’s [relationship](/add-ons/pro-search/filters.md#relationships) with other entries;
23+
- Math: Filter by [Grid calculations](https://github.com/low/low_search_table) like min/max values or averages;
24+
- Author: Filter by [Author fields](https://github.com/low/low_search_members) like screen name or email;
25+
- SQL: Filter a field based on a [SQL query](/add-ons/pro-search/parameters.md#sql-parameters)
2626

2727
Other features include:
2828

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

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,15 +185,23 @@ Use this parameter to pass through a previously executed encoded search query. N
185185

186186
[TOC=4 hide]
187187

188-
The Results tag supports all parameters from the native channel:entries tag and any parameters made available by the Filters. In addition to those, the following parameters are available. Any parameters set in the tag will override the ones in the given query.
188+
The Results tag supports:
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.
189192

190-
{exp:pro_search:results query="{segment_3}" default:limit="10"}
193+
Any parameters set in the `pro_search:results` tag will override the ones in the provided query.
194+
195+
{exp:pro_search:results query="{segment_3}" default:limit="10" }
196+
<p>You searched for "{pro_search_keywords}".</p>
191197
{if count == 1}<ol>{/if}
192-
<li><a href="{comment_url_title_auto_path}">{title}</a></li>
198+
<li><a href="{auto_path}">{title}</a></li>
193199
{if count == total_results}</ol>{/if}
194200
{if no_results}No search results{/if}
195201
{/exp:pro_search:results}
196202

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+
197205
#### `alias:parameter=`
198206

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