...
The publishing is triggered by an action macro, snapshot-page, which must be used in a a trigger.
Code Block | ||
---|---|---|
| ||
{workflow:name=Snapshot Publishing} {state:Editing|submit=Review} {state} {state:Review|approved=Published|rejected=Editing} {approval:Review|assignable=true} {state} {state:Published|final=true|updated=Editing} {state} {trigger:statechanged|state=Published} {snapshot-page|collection=@collectionname@|contributor=@lastapprover@} {trigger} {workflow} |
The example markup above based on the example from from same-space publishing, but we've added the the trigger at the bottom.
When the state changes to Published, the trigger is activated and the snapshot-page
macro instructs the Comala Publishing app to create a snapshot document from the Confluence document.
...