...
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}
{set-metadata:lastapprover}
@user@
{set-metadata}
{snapshot-page|collection=@collectionname@|editor=@lastapprover@}
{trigger}
{workflow} |
...
the collection parameter is required to add the snapshot to a named collection. The example uses a workflow parameter value reference @collectionname@ for the value of this parameter
the editor parameter adds the user who be set as the creator of the snapshot. The example uses a user reference value metadata value set on transition to the Published state for the value of this parameter
...