This site has moved to the integrated Appfire documentation and information site for our apps.

From February 2024 this site is no longer updated.

Take a look here! If you have any questions please email support@appfire.com

Blog Post Events

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}