In this example we'll use a simple workflow to test the options for the style
parameter of the {set-message}
macro.
With the workflow applied to a page, you can jump between the states via the Workflow Popup to see the resulting message styles.
Workflow template
{workflow:name=set-message styles} {state:No message} {state} {state:error} {state} {state:warning} {state} {state:success} {state} {state:info} {state} {state:hint} {state} {state:tip} {state} {state:Default style} {state} {trigger:pagestatechanged|state=No message} {set-message}{set-message} {trigger} {trigger:pagestatechanged|state=error} {set-message:style=error}error{set-message} {trigger} {trigger:pagestatechanged|state=warning} {set-message:style=warning}warning{set-message} {trigger} {trigger:pagestatechanged|state=success} {set-message:style=success}success{set-message} {trigger} {trigger:pagestatechanged|state=info} {set-message:style=info}info{set-message} {trigger} {trigger:pagestatechanged|state=Default style} {set-message}Default style{set-message} {trigger} {workflow}
Screenshots
No message:
No message shown, any previous message is removed
error
:
warning
:
success
:
info
:
Default style: