set-message macro
Overview
Use the set-message macro to display an on-screen message.
It's great for keeping the user informed during the content production process when a workflow event or change occurs.
messages are shown between the page title and body content whilst viewing content (it's hidden from the edit screen)
messages can be configured as different panel displays
info
error
warning
success
if triggered by
stateexpiredortaskexpiredevents, the message is not shown until the page is refreshed
The set-message macro can be filtered to display the message only to a specific user(s).
A message filtered to display to a specific user includes an option for the user to remove it.
Messages filtered for users are removed after the user has viewed the message.
Messages can also be filtered using the view parameter to display a message on the workflow draft content URL or the workflow published content URL when the applied workflow has a final state.
The message is removed and replaced when a new trigger event occurs that includes a new set-message action macro (if the message is for the same audience). The message is cleared if the set-message macro in the trigger is empty.
Where to use it?
Optional.
One or more set-message macros can be added as action macros in a trigger macro.
{trigger:statechanged|state=Rejected}
{set-message}
The page content has been rejected. The content must be triaged.
{set-message}
{trigger}A filter can be added to display the message to specific audiences - for example to one or more users, one or groups
{trigger:statechanged|state=Draft}
{set-message:user=@user@}
The page content has been moved to the Draft state. The content must be triaged before submitting for approval.
{set-message}
{trigger}If more than one set-message macro is added to a trigger
only one message will be displayed on the page if all the messages are for everyone (unfiltered)
more than one
set-messagemacro in the trigger will be displayed on the page if at least one of them is filtered to be displayed to a user(s), group(s) or the draft/published content
Parameters
Parameter | Required | Default | Notes | Ver |
|---|---|---|---|---|
unnamed first parameter |
|
| Deprecated Use the | Deprecated v5.2 |
macro body | The message to display:
| |||
Replaces an existing message to the same audience; if the macro body is empty, the message panel is removed for that audience. {set-message}{set-message}A message that included {set-message:view=draft}{set-message} | ||||
When using the However regular links as wiki markup, for example, [google|https://google.com] do work. | ||||
| How long should the message be displayed from the point at which it is set?
| |||
Default behavior depends on message audience:
In both cases, specifying a | ||||
| unfiltered | Only show to users in specific user group(s)?
The message for an individual user expires once viewed by that user. It is not displayed for subsequent views of the page or if a transition has occurred before viewing. The on-screen display of a message filtered to a specific group(s) can be removed from the screen for that member of the group using an X option displayed in the message panel. The option to remove the message is not displayed if a Filter by labelThere are no items with the selected labels at this time. | 5.2 | |
|
| Message style: o o o o if no | 4.1 | |
Obsolete The | ||||
| unfiltered | Only show to specific user(s)?
The message for an individual user expires once viewed by that user. It is not displayed for subsequent views of the page or if a transition has occurred before viewing. The on-screen display of a message filtered to a specific user(s) can be removed from the screen for that user by using an X option displayed in the message panel. The option to remove the message is not displayed if a | ||
|
| Which types of content URL should the message be shown on? Default - no inclusion of the parameter or value. The undisplayed parameter default value is
When | 5.2 | |
This parameter determine which URL the message is shown when using same-space publishing:
If you're not using same-space publishing, all users see the normal URL by default.
| ||||
For example, If
But this message is not displayed when viewing the last approved version for a page with an applied workflow that includes a final state. The viewer sees this content URL with the
The filtered message | ||||
The
Unfiltered messages, those which do not specify user or group, are treated separately:
| ||||
Need support? Create a request with our support team.
