{approval
} and {trigger
} macros could have conditions associated to them. Conditions can be defined as part of the macro parameters.
Reference | Description | Compare-to values |
---|---|---|
| the user is one of the listed | a comma-separated list of specific user names, groups, |
| the user belongs to the given group | a comma-separated list of specific group names or Value References. |
| the page has any of the given labels | a comma-separated list of specific labels |
| the page has a given approval | an approval name |
| the user has to given permission |
|
| the title name | a page title or a Value Reference to a page title |
| Whether or not the page has no parent page |
|
| Whether or not the page is the home page of the current space |
|
| Whether or not the page is child (or grandchild) of the given page (name) | a specific value or a Value Reference |
| Whether or not the page part of the space identified by the given space key | a specific value or a Value Reference |
| the page's or news/blog post's current state is the given | a state name |
| the current state of the page or news/blog post in the corresponding Draft space as defined through Comala Publishing. | a state name |
| the page's or news/blog post's update was marked as minor (used only on |
|
| the page's parent (ancestors) has any of the given labels | a comma-separated list of specific labels |
usersdefined | the value reference contains users | a comma-separated list of Value References |
A reference to a metadata value. See Note 1 | a specific value or a Value Reference |
Negation
The compared-to value could be preceded by a '!' to negate the condition. Several conditions could be defined in a macro.
Notes
- 1. if a Metadata condition is include in a
pageupdated
trigger, the trigger will not fired if the referred metadata value is being updated.
Examples
{ | ... the user is |
{ | ... the user is the one indicate in the metadata value name |
{ | ... the page does not have the label |
{ | ... the user belongs to the group defined in the metadata value name |
{ | ... the user can administer the page |
{ | ... the page does not have the |
{ | ... the page's metadata value |
{ | ... the current user is neither |
{ | ... the page does not have any of label |
{ | ... the page's title is |
{ | ... the page is not the homepage |
{ | ... the page does not have a parent page |
{...|usersdefined=!Developers,Designer|...} | ... the Developers and Designer users have not been set for the workflow |