Skip to content

Commit 0019fe0

Browse files
authored
Merge pull request #1113 from ExpressionEngine/7.dev
Docs updates 7.5.20
2 parents a6d6310 + a812779 commit 0019fe0

6 files changed

Lines changed: 48 additions & 3 deletions

File tree

docs/channels/categories.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,20 @@ You may alternatively specify which categories to not show
128128

129129
If you specify that a parent category is not shown, then any children of that parent category are then unable to be shown by the tag. The parent category is required for any and all children categories.
130130

131+
### `orderby=`
132+
133+
This parameter allows you to specify the order in which the categories are displayed. Only applicable when using the "[linear](#style)" style. The default is to display the categories in the order they are displayed in the CP, where also they can be reordered. You can order by any of the following:
134+
135+
orderby="category_name"
136+
137+
orderby="category_url_title"
138+
139+
orderby="category_description"
140+
141+
You can also the name of the custom field as the parameter value. If you have a custom field called "my_custom_field" you would use
142+
143+
orderby="my_custom_field"
144+
131145
### `show_empty=`
132146

133147
show_empty="no"
@@ -152,6 +166,14 @@ Determines whether entries dated in the "future" to are included when calculatin
152166

153167
By default, future dated entries will **not** count when determining whether a category is empty.
154168

169+
### `sort=`
170+
171+
sort="asc"
172+
173+
The sort order can be ascending (asc) or descending (desc). The order will default to “descending” if nothing is specified.
174+
175+
This parameter is only applicable when using the "[orderby](#orderby)" parameter to specify the sort order.
176+
155177
### `status=`
156178

157179
status="open"

docs/channels/channel-form/examples.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@
121121
<li>{error}</li>
122122
{/global_errors}
123123
{field_errors}
124-
<li>{error}</li>
124+
<li>{field}: {error}</li>
125125
{/field_errors}
126126
</ul>
127127
{/if}

docs/channels/channel-form/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ If you have chosen [inline error handling](#error_handling), you can display the
432432

433433
### `{field_errors}`
434434

435-
{field_errors}{error}{/field_errors}
435+
{field_errors}{field}: {error}{/field_errors}
436436

437437
If you have chosen [inline error handling](#error_handling), you can display field-related entry submission errors.
438438

docs/config/config-files.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,9 @@ We generally recommend using [Template Routes](templates/routes.md) and not modi
7575
`stopwords.php`
7676

7777
This file contains an array of words that the search functions in EE will ignore in order to a) reduce load, and b) generate better results.
78+
79+
### Reserved field names
80+
81+
`reserved_field_names.php`
82+
83+
This file contains an array of variable names that are reserved by ExpressionEngine and cannot be used as custom field names.

docs/control-panel/template-manager.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ The Template Notes tab enables you to save notes and information about your temp
7474
### Access
7575

7676
- **Allowed member roles** -- Choose which member roles are allowed to access the template.
77-
- **No access redirect** -- Page to redirect users without permissions to. If a template is selected the user does not have access to, the 404 page will be displayed instead.
77+
- **No access template** -- Page to display to users without permissions to access the current template. If a template is selected the user does not have access to, the 404 page will be displayed instead.
7878
- **Enable HTTP Authentication?** -- When set to enable, users with permissions will have to login to view this template.
7979

8080
NOTE: **Note:** If you are running PHP-FPM / FastCGI, you will probably need to add this to your `.htaccess` so the server makes the necessary environment variables available to PHP & ExpressionEngine.

docs/development/services/modal.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,23 @@ Now when a user selects some content in the table, the bulk action controls shou
132132

133133
## Advanced functionality
134134

135+
### Required interaction
136+
137+
By default, clicking the close button, the escape key, or anywhere outside of the modal will close it, acting similar to cancelling the action the modal was prompting for. But if you want to prevent this default behavior and instead want to require the modal to be interacted with, you can add the `must-interact` class as part of the `name` parameter.
138+
139+
$modal_vars = array(
140+
'name' => 'hello must-interact',
141+
// ... other settings
142+
);
143+
$modal_html = ee('View')->make('ee:_shared/modal_confirm_delete')->render($modal_vars);
144+
145+
NOTE: Note: you will also need to add custom JS to remove `.must-interact`, and then trigger the `modal:close` event in order to close it.
146+
147+
$('.modal-wrap .dialog__buttons button').on('click', function() {
148+
$(this).closest('.must-interact').removeClass('must-interact');
149+
$(this).closest('.modal').trigger('modal:close');
150+
});
151+
135152
### Automatically open a modal
136153

137154
If you manually build a modal view, you can add `.app-modal` and a `rev` attribute like:

0 commit comments

Comments
 (0)