Overview
Excerpt | ||
---|---|---|
| ||
How to change captions of the Approve and Reject buttons created by the |
|
macro. |
This example shows how to change the captions of the
Approve
and
Reject
buttons shown during a content review.
Default
captions for approval action labels
When a content review is created using the
{approval}
macroapproval macro, buttons labeled
Approve
and
Reject
are added to the
The approval buttons are only added if their target states are defined in the parent
{state}
macrostate macro via the approved
and rejected
parameters.
Code Block | ||||
---|---|---|---|---|
| ||||
{workflow:name=Customise Approval Buttons} {state:Review|approved=Review|rejected=Review} {approval:Default Captions} {state} {workflow} |
These default button action labels can be edited in the workflow builder for each approval.
Custom captions for approval action labels
To change the button captions, use the approvelabel
and rejectlabel
parameters on the
approval
macro as shown below:
Code Block | ||||
---|---|---|---|---|
| ||||
{workflow:name=Customise Approval Buttons} {state:Review|approved=Review|rejected=Review} {approval:Custom Captions|approvelabel=YesGreat to go!|rejectlabel=No good!} {state} {workflow} |
These custom button action labels can be added in the workflow builder for each approval.