Overview
A workflow can be configured to automatically update the Status macro caption to be the current workflow state name when a state transition occurs.
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:
{workflow:name=Update status|updatestatus=true} {state:First} {state} {state:Second} {state} {workflow}
Adding the macro
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:
STATE
Whenever the workflow state changes, the status macro will be updated to reflect the current workflow state.