...
Note: This is primarily for older templates. Where possible, use the Page Status Macro instead.
Workflow setup
Use the updatestatus=true
parameter on the {workflow } macro:.
Code Block | ||||
---|---|---|---|---|
| ||||
{workflow:name=Update status|updatestatus=true} {state:First} {state} {state:Second} {state} {workflow} |
...
To add the macro to a page:
In the editor, choose Insert → Status
Set the Title, Color and Outline Style to whatever you want
Choose Insert
Here's how the macro looks on your page:
...
Whenever the workflow state changes, the status macro will be updated to reflect the current workflow state.
Tip |
---|
The current workflow state for an applied workflow state on a page is stored as a value reference - this can be retrieved as a metadata value using |