Get Started

Configuration

You can customise Workflow’s settings using a PHP configuration file. This is optional: each setting has a default, so you only need to include the values you want to change.

To override a setting, create workflow.php in your Craft project’s /config directory and return an array of setting names and values. For example, the following will change the name displayed in the control panel:

<?php

return [
    'pluginName' => 'Workflow Tools',
];

All other settings keep their defaults. Add any further settings you want to change to the same array. The options below explain the available settings and their defaults. You can also manage these settings in the control panel under Workflow → Settings.

Configuration Options

General

editorUserGroup

An array of user groups for editors.

reviewerUserGroups

An array of user groups for each reviewer.

publisherUserGroup

An array of user groups for publishers.

editorNotesRequired

An array for whether editors are required to enter a note in their submissions.

publisherNotesRequired

An array for whether publishers are required to enter a note in their submissions.

lockDraftSubmissions

Whether an entry should be locked for editing after it‘s been submitted for review.

publisherSelfApprovalUserGroups

Per site, user groups whose members may approve their own submissions (same nested shape as reviewerUserGroups). Combined with the Approve own submissions permission and the definePublisherSelfApproval event.

Notifications

editorNotifications

Whether email notifications should be delivered to individual editors when approved or rejected.

editorNotificationsOptions

Whether editor notifications should include the reviewer's or publisher's email whose triggered the action.

reviewerNotifications

Whether email notifications should be delivered to reviewers when editors submit an entry for review.

reviewerApprovalNotifications

Whether email notifications should be delivered to editors when each reviewer approves an entry after review.

publisherNotifications

Whether email notifications should be delivered to publishers when editors submit an entry for review.

publishedAuthorNotifications

Whether email notifications should be delivered to the entry author when approved and published by a Publisher.

publisherNotificationsUserGroup

The user group UID to have email notifications for publishers sent to. By default, all users in the publisherUserGroup will receive email notifications.

Permissions

enabledSections

An array of section UIDs to enable submissions on. Use '*' for all.

Multi Site Options

For some settings like editorUserGroup, reviewerUserGroups, publisherUserGroup, etc. - these are multi-site configurable. You should provide a nested array of User Group UIDs with Site UIDs. For example:

return [
    '*' => [
        'editorUserGroup' => [
            // Site UID => User Group UID
            '76974830-73a5-45fb-9c73-72ac8c8981dc' => '1d9e7ded-b621-48ee-9253-12a6e8f8094e',
        ],

        'reviewerUserGroups' => [
            // Site UID => Collection of User Group UIDs
            '76974830-73a5-45fb-9c73-72ac8c8981dc' => [
                ['87524453-a67b-4416-8a6e-de44c3547d18'],
                ['c23a4d8d-47f0-4e71-927c-d5897ec9c9f8'],
            ],
        ],

        'publisherUserGroup' => [
            // Site UID => User Group UID
            '76974830-73a5-45fb-9c73-72ac8c8981dc' => '8ffaff7f-b68e-4ed0-a74b-4e5596e01735',
        ],

        'editorNotesRequired' => [
            // Site UID => true/false
            '76974830-73a5-45fb-9c73-72ac8c8981dc' => true,
        ],

        'publisherNotesRequired' => [
            // Site UID => true/false
            '76974830-73a5-45fb-9c73-72ac8c8981dc' => true,
        ],

        'publisherSelfApprovalUserGroups' => [
            // Site UID => rows of User Group UIDs (optional extra groups that may self-approve)
            '76974830-73a5-45fb-9c73-72ac8c8981dc' => [
                ['8ffaff7f-b68e-4ed0-a74b-4e5596e01735'],
            ],
        ],
    ]
];