add-comment macro

add-comment macro

Overview

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

The comment is 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 is posted 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

Parameter

Required

Default

Notes

Parameter

Required

Default

Notes

macro body



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}

@approvaluser@ is a predefined reference.

See also

Workflow Authoring Guide:

Need support? Create a request with our support team.

Copyright © 2005 - 2025 Appfire | All rights reserved.