Comala Workflows is now Comala Document Management. Click here for the latest documentation.

Overview

This example shows how to change the captions of the "Approve" and "Reject" buttons shown during a content review.

Default Captions

When a content review is created using the {approval} macro, buttons labeled "Approve" and "Reject" are added to the Workflow Popup.

Note: The buttons are only added if their target states are defined in the parent {state} macro via the approved and rejected parameters.

{workflow:name=Customise Approval Buttons}
   {state:Review|approved=Review|rejected=Review}
      {approval:Default Captions}
   {state}
{workflow}

Custom Captions

To change the button captions, use the approvelabel and rejectlabel parameters on the {approval} macro as shown below:

{workflow:name=Customise Approval Buttons}
   {state:Review|approved=Review|rejected=Review}
      {approval:Custom Captions|approvelabel=Yes|rejectlabel=No}
   {state}
{workflow}