Workflow has a number of email notifications, sent off at different events. Craft provides an easy way to manage these notifications, directly in the control panel, through System Messages. These templates are edited in the control panel, and can be different per site (for multi-site Craft sites). The added bonus is that you can use specific variables in your templates.
Workflow provides example email content as part of the plugin, but you of course can change these to suit your needs.
To access these, visit Utilities → System Messages.
Variable | Description |
---|---|
submission | A Submission element. |
user | A User (opens new window) element. |
"{{ submission.owner.title }}" has been submitted for approval on {{ siteName }}.
Hey {{ user.friendlyName }},
{{ submission.editor }} has submitted the entry "{{ submission.owner.title }}" for approval on {{ siteName }}.
{% if submission.editorNotes %}Notes: "{{ submission.editorNotes }}"
{% endif %}To review it please log into your control panel.
{{ submission.getCpEditUrl() }}
Variable | Description |
---|---|
submission | A Submission element. |
review | A Review model. |
user | A User (opens new window) element. |
Your submission for "{{ submission.owner.title }}" has been {{ review.approved ? 'approved' : 'rejected' }} on {{ siteName }}.
Hey {{ user.friendlyName }},
Your submission for {{ submission.owner.title }} has been {{ review.approved ? 'approved' : 'rejected' }} {{ review.dateCreated | date }} on {{ siteName }}.
{% if review.notes %}Notes: "{{ review.notes }}"
{% endif %}View your submission by logging into your control panel.
{{ submission.getCpEditUrl() }}
Variable | Description |
---|---|
submission | A Submission element. |
user | A User (opens new window) element. |
Your submission for "{{ submission.owner.title }}" has been {{ submission.status }} on {{ siteName }}.
Hey {{ user.friendlyName }},
Your submission for {{ submission.owner.title }} has been {{ submission.status }} {{ (submission.status == 'approved') ? submission.dateApproved | date : submission.dateRejected | date }} on {{ siteName }}.
{% if submission.publisherNotes %}Notes: "{{ submission.publisherNotes }}"
{% endif %}View your submission by logging into your control panel.
{{ submission.getCpEditUrl() }}