Setting up the Approve event
This page is for administrators who build the approval workflow. It goes through the fields of the Approve event as Workflows, section 3 describes them and gives the usual public-sector choice for each.
Contents
Create the workflow
- Setup > Workflows. Open a workflow group (for example Standard) or create one with New workflow group.
- New workflow; name it for its purpose, for example "Approval before publishing - public site".
- In the event list choose Event / Approve and press Add event.
The fields
| Field | What it does | Usual choice |
|---|---|---|
| Affected sections | only content in these sections needs approval; content whose own section is not listed also counts when the parent of one of its locations is in a listed section | the sections visitors read (Standard, and any public section of your own); not Users or Media unless media files are published content |
| Affected languages | only versions whose initial language is listed | All languages, unless one language team has its own workflow (Multilingual approvals) |
| Affected versions | All versions, only Publishing new object, or only Updating existing object | All versions: a change to a published page is also a publication |
| Users who approve content | individual approvers | leave empty; use groups |
| Groups who approve content | every user in these groups is an approver | one approvers' group per area |
| Excluded user groups | users in these groups publish without approval | the smallest group possible, documented (Emergency publishing bypass) |
Press OK to store the workflow. The event lets through content outside its fields at once, and lets through content published by one of its approvers (Workflows, section 3.2).
Connect the trigger
Setup > Triggers lists the operations that can start a workflow. In the row Before publishing content
(content/publish, before), choose your workflow and press Apply changes. Before holds publishing back until
the workflow is done; after would run it once the content is already public, which is useless for approval.
Only one workflow per trigger: if another workflow already runs before publishing (for example a notification workflow from an extension), build a workflow with a Multiplexer event that runs both.
Check the cronjob
Setup > Workflow processes shows in its status bar whether workflow.php is scheduled, for example "Resumed by
the workflow cronjob (workflow.php) in the Frequent part: Every 5 minutes". If it says not scheduled in the
crontab, install the line Setup > Cronjobs suggests (Check that cronjobs run).
Try it and record it
- As an editor who is not an approver, publish an article in an affected section: it waits.
- Setup > Workflow processes shows one process under Before publishing content.
- As an approver, open My account > Collaboration, open the request, Approve.
- Run the Frequent part from Setup > Cronjobs, or wait: the article is published.
For your change record, note the workflow's name, the trigger, every field value and the date; the trigger list and the workflow's page show them. Changes to workflows are configuration changes: route them through your change process (Change management and advisory boards).
Related pages
- Approval workflows overview
- Role design: approvers
- Workflow troubleshooting
- Set up an approval workflow for a section
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.