Skip to end of banner
Go to start of banner

Blog Post Events

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

Overview

The following examples illustrate the various events associated with blog posts.

Created

Note: The newscreated event only works in Space Mode.

{workflow:name=News created}
   {state:Test}
   {state}
   {trigger:newscreated}
      {set-message:style=info}A blog post was created{set-message}
   {trigger}
{workflow}

Updated

{workflow:name=News updated}
   {state:Test}
   {state}
   {trigger:newsupdated}
      {set-message:style=info}A blog post was updated{set-message}
   {trigger}
{workflow}

Reviewer assignments

There isn't a specific event for removing a reviewer on a blogpost, so metadata is used to help identify the news in the approvalunassigned event.

(info) A page refresh is required after un-assigning to see the message update.

{workflow:name=News assignees}
   {state:Test|approved=Test|rejected=Test}
      {approval:Test|assignable=true}
   {state}
   {trigger:newsapprovalassigned|approval=Test}
      {set-message:style=info}A blog post reviewer was assigned{set-message}
      {set-metadata:isNews}true{set-metadata}
   {trigger}
   {trigger:approvalunassigned|approval=Test|@isNews@=true}
      {set-message:style=info}A blog post reviewer was unassigned{set-message}
   {trigger}
{workflow}

Approvals / Rejections

{workflow:name=News approve and reject}
   {state:Test|approved=Test|rejected=Test}
      {approval:Test}
   {state}
   {trigger:newsapproved|approval=Test}
      {set-message:style=info}A blog post was approved{set-message}
   {trigger}
   {trigger:newsrejected|approval=Test}
      {set-message:style=info}A blog post was rejected{set-message}
   {trigger}
{workflow}

State changed

{workflow:name=News state change}
   {state:Test|submit=Another state}
   {state}
   {state:Another state}
   {state}
   {trigger:newsstatechanged}
      {set-message:style=info}A blog post workflow state changed{set-message}
   {trigger}
{workflow}
  • No labels