Skip to content

Commit c975f12

Browse files
committed
Rearrange conditions articles
1 parent 1791019 commit c975f12

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

15/umbraco-cms/customizing/extending-overview/extension-conditions.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,23 @@ The example above requires the nearest Workspaces Alias to be equal to `'Umb.Wor
3333

3434
When declaring multiple conditions all of them must be permitted for the extension to be available.
3535

36+
## Built-in conditions types <a href="#core-conditions-types" id="core-conditions-types"></a>
37+
38+
The following conditions are available out of the box, for all extension types that support Conditions.
39+
40+
* `Umb.Condition.SectionAlias` - Requires the current Section Alias to match the one specified.
41+
* `Umb.Condition.MenuAlias` - Requires the current Menu Alias to match the one specified.
42+
* `Umb.Condition.WorkspaceAlias` - Requires the current Workspace Alias to match the one specified.
43+
* `Umb.Condition.WorkspaceEntityType` - Requires the current workspace to work on the given Entity Type. Examples: 'document', 'block' or 'user'.
44+
* `Umb.Condition.WorkspaceContentTypeAlias` - Requires the current workspace to be based on a Content Type which Alias matches the one specified.
45+
* `Umb.Condition.Workspace.ContentHasProperties` - Requires the Content Type of the current Workspace to have properties.
46+
* `Umb.Condition.WorkspaceHasCollection` - Requires the current Workspace to have a Collection.
47+
* `Umb.Condition.WorkspaceEntityIsNew` - Requires the current Workspace data to be new, not yet persisted on the server.
48+
* `Umb.Condition.EntityIsTrashed` - Requires the current entity to be trashed.
49+
* `Umb.Condition.EntityIsNotTrashed` - Requires the current entity to not be trashed.
50+
* `Umb.Condition.SectionUserPermission` - Requires the current user to have permissions to the given Section Alias.
51+
* `Umb.Condition.UserPermission.Document` - Requires the current user to have specific Document permissions. Example: 'Umb.Document.Save'
52+
3653
## Condition Configuration
3754

3855
The conditions are defined as an array of condition configurations. Each entry can contain the following properties:

15/umbraco-cms/customizing/extending-overview/extension-types/condition.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ Extension Conditions declare requirements that should be permitted for the exten
1010

1111
[Read about utilizing conditions in Manifests](../extension-conditions.md#utilizing-conditions-in-your-manifest).
1212

13-
## Built-in conditions types <a href="#core-conditions-types" id="core-conditions-types"></a>
14-
15-
The following conditions are available out of the box, for all extension types that support Conditions.
16-
17-
* `Umb.Condition.SectionAlias` - Requires the current Section Alias to match the one specified.
18-
* `Umb.Condition.MenuAlias` - Requires the current Menu Alias to match the one specified.
19-
* `Umb.Condition.WorkspaceAlias` - Requires the current Workspace Alias to match the one specified.
20-
* `Umb.Condition.WorkspaceEntityType` - Requires the current workspace to work on the given Entity Type. Examples: 'document', 'block' or 'user'.
21-
* `Umb.Condition.WorkspaceContentTypeAlias` - Requires the current workspace to be based on a Content Type which Alias matches the one specified.
22-
* `Umb.Condition.Workspace.ContentHasProperties` - Requires the Content Type of the current Workspace to have properties.
23-
* `Umb.Condition.WorkspaceHasCollection` - Requires the current Workspace to have a Collection.
24-
* `Umb.Condition.WorkspaceEntityIsNew` - Requires the current Workspace data to be new, not yet persisted on the server.
25-
* `Umb.Condition.EntityIsTrashed` - Requires the current entity to be trashed.
26-
* `Umb.Condition.EntityIsNotTrashed` - Requires the current entity to not be trashed.
27-
* `Umb.Condition.SectionUserPermission` - Requires the current user to have permissions to the given Section Alias.
28-
* `Umb.Condition.UserPermission.Document` - Requires the current user to have specific Document permissions. Example: 'Umb.Document.Save'
29-
3013
## Make your own conditions
3114

3215
```html

0 commit comments

Comments
 (0)