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
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}
Note: @approvaluser@
is a Predefined reference.
All examples
There is no content with the specified labels