Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Table of Contents
minLevel1
maxLevel6
outlinefalse
typeflat
separatorpipe
printabletrue

Overview

Excerpt

Triggering events when comments are created, updated or removed, or inline comments are created or resolved on the page.

In the following examples, we show how to display a message when users add / update / remove comments or add / resolve inline comments on a page or blog post.

Comment created

Code Block
languagetextthemeRDark
{workflow:name=Comment added}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:pagecommentcreated}
      {set-message}A comment was added to the page.{set-message}
   {trigger}
{workflow}

Comment updated

Code Block
languagetextthemeRDark
{workflow:name=Comment updated}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:pagecommentupdated}
      {set-message}A comment was updated on the page.{set-message}
   {trigger}
{workflow}

Comment removed

Code Block
languagetext
themeRDark
{workflow:name=Comment removed}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:pagecommentremoved}
      {set-message}A comment was removed from the page.{set-message}
   {trigger}
{workflow}

Inline comment created

Code Block
theme
languagetextRDark
{workflow:name=Inline comment added}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:inlinecommentcreated}
      {set-message}An inline comment was added to the page.{set-message}
   {trigger}
{workflow}

Inline comment resolved

Code Block
languagetextthemeRDark
{workflow:name=Inline comment resolved}
   {state:In Progress}
   {state}
   {state:Approved}
   {state}
   {trigger:inlinecommentresolved}
      {set-message}An inline comment was resolved.{set-message}
   {trigger}
{workflow}

...