add-comment macro

Overview

The add-comment macro adds a top-level (un-nested) comment to a page or blog post, in much the same way an end-user would.

The comment will be posted as if from the user who caused the event to be fired. In cases where no user was responsible for firing the event (for example, the pageexpired event), the comment will be posed as if from an anonymous (no user account) user, even if the space permissions do not permit anonymous posting.

Where to use it?

Optional.

One or more add-comment macros can be put in a trigger macro.

Parameters

ParameterRequiredDefaultNotes
macro body(tick)

Content of comment:

Example

{workflow:Commenting}
   {state:Review|approved=Published|rejected=Review}
      {approval:Review}
   {state}
   {state:Published}
   {state}
   {trigger:pageapproved|approval=Review}
      {add-comment} 
         Page approved by @approvaluser@
      {add-comment}
   {trigger}
{workflow}

Note: @approvaluser@ is a Predefined reference.

See also

Workflow Authoring Guide: