Overview
This example shows how to include the {pageactivity}
macro, or a link to the Activity Report - Content, in a custom email notification.
Including a link
To include a link, use the @pageactivity@
Predefined reference:
{workflow:name=Email activity link} {state:Editing|submit=Review} {state} {state:Review} {state} {trigger:statechanged|state=Review} {send-email:user=@author@|subject=@pagetitle@ submitted for review|mimetype=text/html} The @type@ @pagelatest@ has been submitted for review by @user@. For details, see: @pageactivity@ {send-email} {trigger} {workflow}
Including the report
To include the report, use the {pageactivity}
macro in the email body:
{workflow:name=Email activity link} {state:Editing|submit=Review} {state} {state:Review} {state} {trigger:statechanged|state=Review} {send-email:user=@author@|subject=@pagetitle@ submitted for review|mimetype=text/html} {pageactivity:maxentries=5} {send-email} {trigger} {workflow}
Permissions
When used in an email, the report (or link to it) will always be included in the message regardless of who the email is sent to.
Same-space publishing
If your workflow uses Same-space publishing, the activity report will only list entries up to and including the most recently published version of content.