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/file.md
+10Lines changed: 10 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,12 @@ The file display engine sets some parameters dynamically, based on what is in th
122
122
123
123
You can hard code the file entries tag to show specific files. You may also specify multiple files by separating them with the pipe character. This parameter takes precedence over any entry specified in the url.
124
124
125
+
### `folder_id=`
126
+
127
+
folder_id="34"
128
+
129
+
If you want to display only the files that are in certain folder within an Upload Directory, specify the folder ID using this parameter.
130
+
125
131
### `limit=`
126
132
127
133
limit="30"
@@ -219,6 +225,10 @@ If you have defined any [image manipulations](control-panel/file-manager/upload-
219
225
220
226
The URL to the file.
221
227
228
+
### `{folder_id}`
229
+
230
+
The ID of the folder the file is in. If the file is in the top level folder of the upload directory, it will return 0.
231
+
222
232
### `{height}`
223
233
224
234
The height (in pixels) of the full-size image. (Empty for non-image files.)
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/development/anatomy.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -69,7 +69,7 @@ An array of entry IDs, an empty array (no results), or `NULL` (if given and your
69
69
70
70
### fixed_order
71
71
72
-
Should return `TRUE` or `FALSE` depending on whether the entry IDs returned by [the filter method](#filter-method) are in the order they should appear in the [Results tag](/add-ons/pro-search/tags.md#results-tag). Defaults to `FALSE`.
72
+
Should return `TRUE` or `FALSE` depending on whether the entry IDs returned by [the filter method](#filter) are in the order they should appear in the [Results tag](/add-ons/pro-search/tags.md#exppro_searchresults). Defaults to `FALSE`.
73
73
74
74
#### Returns
75
75
@@ -85,7 +85,7 @@ Should return an array of entry IDs that should be _excluded_ from the search re
85
85
86
86
### results
87
87
88
-
This method is called before displaying the search results in the [Results tag](/add-ons/pro-search/tags.md#results-tag) so you can add your own custom variables to the search results. It basically piggy-backs on the [channel_entries_query_result](/development/extension_hooks/module/channel/index.md#channel-entries-query-result) extension hook.
88
+
This method is called before displaying the search results in the [Results tag](/add-ons/pro-search/tags.md#exppro_searchresults) so you can add your own custom variables to the search results. It basically piggy-backs on the [channel_entries_query_result](/development/extension-hooks/module/channel.md#channel_entries_query_resultthis-query_result) extension hook.
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/development/functions.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -97,7 +97,7 @@ Checks if given value is present in given parameter.
97
97
98
98
### prep
99
99
100
-
Modifies a parameter value to EE syntax based on the presence of the parameter name in other parameters like [require_all](./parameters#inclusive-values) or [exclude](./parameters#exclude-values).
100
+
Modifies a parameter value to EE syntax based on the presence of the parameter name in other parameters like [require_all](/add-ons/pro-search/parameters.md#inclusive-values) or [exclude](/add-ons/pro-search/parameters.md#exclude-values).
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/examples.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
-->
9
9
# Examples
10
10
11
-
Have you read the docs on [Parameters](/add-ons/pro-search/parameter.md)? Good. Are you familiar with the custom [Filters](/add-ons/pro-search/filters.md)? Excellent. Taken a look at the [Template Tags](/add-ons/pro-search/tags.md)? Perfect. Then here are some examples that illustrate how these three are combined.
11
+
Have you read the docs on [Parameters](/add-ons/pro-search/parameters.md)? Good. Are you familiar with the custom [Filters](/add-ons/pro-search/filters.md)? Excellent. Taken a look at the [Template Tags](/add-ons/pro-search/tags.md)? Perfect. Then here are some examples that illustrate how these three are combined.
12
12
13
13
[TOC]
14
14
@@ -503,7 +503,7 @@ Below are two lists of tags. You can select multiple tags per list. Entries that
503
503
504
504
## Other & Native
505
505
506
-
In addition to what all the [filters](/add-ons/pro-search/filters.md) bring to the party, you can also filter by native ExpressionEngine parameters, as well as some [little extras](/add-ons/pro-search/tags.md/results-tag).
506
+
In addition to what all the [filters](/add-ons/pro-search/filters.md) bring to the party, you can also filter by native ExpressionEngine parameters, as well as some [little extras](/add-ons/pro-search/tags.md#results-tag).
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/overview.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,11 @@ Apart from the powerful [keywords filter](/add-ons/pro-search/filters.md#keyword
26
26
27
27
Other features include:
28
28
29
-
- Keyword [suggestions](/add-ons/pro-search/tags.md#suggestions-tag) based on your own [lexicon](/add-ons/pro-search/lexicon.md);
30
-
- Fuzzy searches using [singulars & plurals](/add-ons/pro-search/filters.md#keywords-inflect) or [word stems](/add-ons/pro-search/filters.md#keywords-stem);
- Keyword [suggestions](/add-ons/pro-search/tags.md#exppro_searchsuggestions) based on your own [lexicon](/add-ons/pro-search/lexicon.md);
30
+
- Fuzzy searches using [singulars & plurals](/add-ons/pro-search/filters.md#keywordsinflect) or [word stems](/add-ons/pro-search/filters.md#keywordsstem);
- Search [shortcuts](/add-ons/pro-search/shortcuts.md) for custom search queries and URLs;
34
34
- An exportable search log;
35
-
- A super powerful [Find & Replace utility](/add-ons/pro-search/find-replace.md);
36
-
- A [custom filter API](/add-ons/pro-search/development/create.md), [fieldtype API](/add-ons/pro-search/development/api.md), and [extension hooks](/add-ons/pro-search/development/hooks.md) for developers.
35
+
- A super powerful [Find & Replace utility](/add-ons/pro-search/find-and-replace.md);
36
+
- A [custom filter API](/add-ons/pro-search/development/create.md), [fieldtype API](/add-ons/pro-search/development/api.md), and [extension hooks](/add-ons/pro-search/development/hooks.md) for developers.
Copy file name to clipboardExpand all lines: docs/add-ons/pro-search/tags.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -91,7 +91,7 @@ Name of the shortcut to use for the search query
91
91
92
92
#### {pro_search_*query_parameter*}
93
93
94
-
To output the value of an existing [query parameter](parameters.md) such as "keywords" or "item:size", use `{pro_search_}` and append the parameter name e.g. `{pro_search_item:size}`.
94
+
To output the value of an existing [query parameter](/add-ons/pro-search/parameters.md) such as "keywords" or "item:size", use `{pro_search_}` and append the parameter name e.g. `{pro_search_item:size}`.
95
95
96
96
#### {collections}{/collections}
97
97
@@ -273,7 +273,7 @@ Name of the shortcut to use for the search query.
273
273
274
274
#### {pro_search_*query_parameter*}
275
275
276
-
To output the value of an existing [query parameter](parameters.md) such as "keywords" or "item:size", use `{pro_search_}` and append the parameter name e.g. `{pro_search_item:size}`.
276
+
To output the value of an existing [query parameter](/add-ons/pro-search/parameters.md) such as "keywords" or "item:size", use `{pro_search_}` and append the parameter name e.g. `{pro_search_item:size}`.
277
277
278
278
NOTE: **Note:** This is not used to output the content from a matching result. It outputs the value of an existing search parameter i.e. *Your search for "cowboy hats" in size "Large" returned 19 results.*
Copy file name to clipboardExpand all lines: docs/add-ons/pro-variables/tags.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -68,7 +68,7 @@ Total of iterations of the loop.
68
68
69
69
If you’re displaying a 3rd party field type, you can use all variables you would normally use inside the field channel variable pair.
70
70
71
-
NOTE: **Note:** the `{_my_var_:…}` variables are _only_ available when using the Parse tag pair or Pair tag pair, _and_ if the variable type allows multiple items to be selected. For more options on the native variable types, [check their properties](/add-ons/pro-variables/types.md).
71
+
NOTE: **Note:** the `{_my_var_:…}` variables are _only_ available when using the Parse tag pair or Pair tag pair, _and_ if the variable type allows multiple items to be selected. For more options on the native variable types, [check their properties](/add-ons/pro-variables/type.md).
Copy file name to clipboardExpand all lines: docs/add-ons/pro-variables/type.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -56,11 +56,11 @@ Uses the native [File field](/fieldtypes/file.md). To output the variable, alway
56
56
57
57
#### `modifier`
58
58
59
-
Allows applying modifiers, which, among other, are used to apply [on-the-fly image manipulations](/fieldtypes/grid.md#on-the-fly-image-manipulations) to files
59
+
Allows applying modifiers, which, among other, are used to apply [on-the-fly image manipulations](/fieldtypes/file.md#on-the-fly-image-manipulations) to files
60
60
61
61
## Grid
62
62
63
-
Uses the native [Grid field](/fieldtypes/grid.md). All native types are available, _except for Relationships and Members_. To output the variable, use the `{exp:pro_variables:pair}` or `{exp:pro_variables:single}` tag where appropriate. You can use any of Grid’s [parameters](/fieldtypes/grid.md#parameters) and [variables](/fieldtypes/grid.ms#variables) using these tags. Additionally, one more parameter is available:
63
+
Uses the native [Grid field](/fieldtypes/grid.md). All native types are available, _except for Relationships and Members_. To output the variable, use the `{exp:pro_variables:pair}` or `{exp:pro_variables:single}` tag where appropriate. You can use any of Grid’s [parameters](/fieldtypes/grid.md#parameters) and [variables](/fieldtypes/grid.md#variables) using these tags. Additionally, one more parameter is available:
64
64
65
65
### Parameters
66
66
@@ -355,7 +355,7 @@ To be used in combination with `format`. Possible values: `none`, `safe` or `all
355
355
356
356
#### `preparse:_my_var_`
357
357
358
-
If the variable content contains variables that need to be parsed before it is put in the template, you can use this parameter, similar to [embed variables](/templates/embedding.md#embed-variables-for-the-embedded-template). For example: setting the parameter `preparse:foo="bar"` will replace the variable `{preparse:foo}` with `bar` in the variable content.
358
+
If the variable content contains variables that need to be parsed before it is put in the template, you can use this parameter, similar to [embed variables](/templates/embedding.md#embedding-variables). For example: setting the parameter `preparse:foo="bar"` will replace the variable `{preparse:foo}` with `bar` in the variable content.
Copy file name to clipboardExpand all lines: docs/channels/entries.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -893,9 +893,9 @@ The "count" out of the current entries being displayed. If five entries are bein
893
893
<a href="{cp_edit_entry_url}">Edit Entry</a>
894
894
{/if}
895
895
896
-
The URL of the entry form in the control panel where this entry can be edited. It is recommended you wrap this variable in an `{if logged_in}` conditional to hide your control panel's URL from regular site visitors. If you are running a membershipbased site, hide it behind an appropriate `logged_in_role_id` conditional. For example, to hide this link from everyone but Super Admins:
896
+
The URL of the entry form in the control panel where this entry can be edited. It is recommended you wrap this variable in an `{if logged_in}` conditional to hide your control panel's URL from regular site visitors. If you are running a membership-based site, hide it behind an appropriate `logged_in_primary_role_id` conditional or use [exp:member:has_role](/member/member-roles-tags.html#expmemberhas_role). For example, to hide this link from everyone but Super Admins:
Copy file name to clipboardExpand all lines: docs/comment/entries.md
+25-21Lines changed: 25 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ Here is a basic example showing how you might use the comment tag:
22
22
<p>By {name} on {comment_date format="%Y %m %d"}</p>
23
23
{/exp:comment:entries}
24
24
25
-
NOTE: **Important:** The Comment Entries tag should **not** be nested inside of a standard {exp:channel:entries} tag.
25
+
NOTE: **Important:** The Comment Entries tag should **not** be nested inside of a standard {exp:channel:entries} tag. If you do, the outer tag will replace many of these variables and conditionals before the Comment Entries tag has the chance to do so.
26
26
27
27
## Parameters
28
28
@@ -158,12 +158,6 @@ This variable will always display the absolute total number of results that are
158
158
159
159
The _opposite_ of `{absolute_count}`, in that it displays the entry count position counting backwards from the absolute total. Works across pagination, so the fifth entry in a list of fifteen entries would display "10".
160
160
161
-
### `{allow_comments}`
162
-
163
-
{if allow_comments}
164
-
165
-
TRUE / FALSE, Whether or not the entry being displayed allows comments. Typically used as a conditional.
166
-
167
161
### `{author}`
168
162
169
163
The comment author's screen name, if a member; otherwise, this variable will display the name submitted with the comment.
@@ -196,10 +190,6 @@ The URL to the avatar image associated with the entry's author. Typically used a
TRUE / FALSE, Whether a member has permission to edit a given comment AND/OR close that comment. Used in conjunction with [comment editing](comment/form.md#allowing-members-to-edit-comments-on-the-front-end).
202
-
203
193
### `{channel_id}`
204
194
205
195
The ID number of the channel that the comment belongs to.
@@ -289,12 +279,6 @@ If five entries are being displayed per page, then for the fourth entry on the p
289
279
290
280
The date on which the comment was edited. See [Date Variable Formatting](templates/date-variable-formatting.md) for more information.
291
281
292
-
### `{editable}`
293
-
294
-
{if editable}Show Edit{/if}
295
-
296
-
This variable will be used in a conditional to allow [comment editing](comment/form.md#allowing-members-to-edit-comments-on-the-front-end). It indicates whether a member has [permission to edit a given comment](control-panel/member-manager.md#createedit-all-member-roles).
297
-
298
282
### `{email}`
299
283
300
284
The comment author's email address, if specified.
@@ -453,7 +437,15 @@ These are totally dynamic in that any profile field you create for your members
453
437
454
438
[TOC=3]
455
439
456
-
The following special conditionals are available:
440
+
The following special conditionals are available.
441
+
442
+
NOTE: **Important:** Avoid using Template Caching on any Template containing these conditional that are user-specific. If you do not avoid caching, then data will not be dynamic for each user. Instead, whoever happens to load the page when it gets cached will have their conditionals applied to every subsequent visitor until the cache expires.
443
+
444
+
### `{if allow_comments}`
445
+
446
+
{if allow_comments} content {/if}
447
+
448
+
TRUE / FALSE, Whether or not the entry being displayed allows comments. Typically used as a conditional.
457
449
458
450
### `{if avatar}`
459
451
@@ -463,25 +455,37 @@ This special conditional lets you conditionally display content if the current e
TRUE / FALSE, Whether a member has permission to edit a given comment AND/OR close that comment. Used in conjunction with [comment editing](comment/form.md#allowing-members-to-edit-comments-on-the-front-end).
461
+
466
462
### `{if comments_expired}`
467
463
464
+
{if comments_expired} content {/if}
465
+
468
466
If commenting has expired (and expiration is not set to be [overridden by moderation](comment/control-panel.md)), the contents of this conditional will be displayed.
469
467
470
468
NOTE: **Note:**`{if no_results}` has precedence over this conditional. If there are no comments, this conditional is not evaluated.
471
469
472
470
### `{if comments_disabled}`
473
471
474
-
{if comments_disabled}
472
+
{if comments_disabled} content {/if}
475
473
476
474
If commenting has been disabled, the contents of this conditional will be displayed.
477
475
478
476
NOTE: **Note:**`{if no_results}` has precedence over this conditional. If there are no comments, this conditional is not evaluated.
479
477
478
+
### `{if editable}`
479
+
480
+
{if editable} Show Edit Form {/if}
481
+
482
+
TRUE / FALSE, This variable will be used in a conditional to allow [comment editing](comment/form.md#allowing-members-to-edit-comments-on-the-front-end). It indicates whether a member has [permission to edit a given comment](control-panel/member-manager.md#createedit-all-member-roles).
483
+
480
484
### `{if is_ignored}`
481
485
482
486
{if is_ignored} content {/if}
483
487
484
-
This conditionals allows you to show (or hide) specific content if the comment was made by a member on the logged-in user's ignore list. A simplified example of how this might be used is:
488
+
This conditional allows you to show (or hide) specific content if the comment was made by a member on the logged-in user's ignore list. A simplified example of how this might be used is:
485
489
486
490
{exp:comment:entries}
487
491
{if is_ignored}You are ignoring {author}.{/if}
@@ -509,7 +513,7 @@ Or you can use Javascript to allow the user to read the comment if they wish:
NOTE: **Important:** Avoid using Template Caching on any Template containing this conditional. If you do not avoid caching, then data will not be dynamic for each user. Instead, whoever happens to load the page when it is cached will have their ignore list applied to everyone until the cache expires.
516
+
NOTE: **Important:** Avoid using Template Caching on any Template containing this conditional. If you cache this, whoever happens to load the page when it is first cached will have their ignore list applied to everyone until the cache is cleared.
0 commit comments