Excerpt |
---|
hidden | true |
---|
name | refinedpageimage |
---|
|
|
Table of Contents |
---|
maxLevel | 2 |
---|
minLevel | 2 |
---|
absoluteUrl | true |
---|
exclude | See Also |
---|
type | flat |
---|
printable | false |
---|
separator | pipe |
---|
|
Overview
Snapshot publishing allows you create static versioned documents from your dynamic Confluence content, freezing content from Confluence macros that display live content in the snapshot document. A
Snapshot Publishing can be used as a standalone feature of the Comala Publishing app to create a snapshot of a document but a snapshot of a Confluence document can also be created using a workflow trigger.
...
Requires Comala Document Management v6.17.6+
Excerpt |
---|
|
Activating snapshot publishingThere are two three steps to setting up snapshot publishing : /wiki/spaces/AHP/pages/14172848373 to to take place on a Comala workflow event: Install Comala Publishing to your instance and enable snapshot publishing in for a space Set up /wiki/spaces/AHP/pages/14179205131 snapshot publishing in your space tools snapshot publishing dashboard Update your workflow to trigger the snapshot publishing process and apply to your documents (see below) Workflow
Publishing a snapshot using a workflow triggerA snapshot can be published using Both action macros can be used in the same trigger. Snapshot-page action trigger workflow markupThe publishing is triggered by an action macro, snapshot-page, which must be used in 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}
{set-metadata:lastapprover}
@user@
{set-metadata}
{snapshot-page|:collection=@collectionname@mycollection|editor=@lastapprover@}
{trigger}
{workflow} |
The example markup above based on the example from same-space publishing, but we've added 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. the collection parameter value 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 value is the user who be is set as the creator of the snapshot . The example uses document
In the example above the value for the collection parameter must be the name of a snapshot collection that has been linked to or created in the space by the space administrator the value for the editor parameter is a metadata value set on transition to the Published state for the value of this parameter The user must have been The user who is added as the value for editor parameter must have be added as a collection contributor to the collection permissions by the user who created the collection owner/creator. Info |
---|
For snapshot publishing all the work is done by the snapshot-page macropage macro. The snapshot The snapshot-page macro page macro can be used to publish the content from any state using an appropriate trigger event. |
pdf-export action trigger workflow markupWith Comala Publishing installed, the pdf-export macro can be used as an action to export a snapshot of page or blog post in PDF format and adds the pdf to the page as an attachment. The pdf is added with a filename in the following format: Code Block |
---|
{trigger:statechanged|state=Published}
{pdf-export}
{trigger} |
There are no macro parameters to configure. The pdf-export macro can also be used with Scroll PDF Exporter 4.10.11 or higher. |
Macros
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 100 |
---|
showSpace | false |
---|
sort | title |
---|
excerptType | simple |
---|
cql | label = "app-comala-publishing" and label = "snap-publish-macro" and space = currentSpace ( ) |
---|
|
...