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

set-label macro

Overview

The {set-label} macro is used to add a label to content – either the current page, or the immediate child pages.

Where to use it?

Optional.

One or more {set-label} macros can be put in a {trigger} macro.

Parameters

Parameter

Required

Default

Notes

unnamed first parameter
or label

(tick)


Name of label to add:

children


false

What should the label be applied to?

  • true – all immediate children of the page, but not the page itself
  • false – the page or blog post itself
Only works for pages, not blog posts. Use with caution!

Conditions

The following Conditions are applicable to lables:

  • haslabel
  • parenthaslabel

Events

The following Events are generated by this macro:

  • labeladded

Example

{workflow:Labelled}
   {state:Editing|submit=Review}
   {state}
   {state:Review}
   {state}
   {trigger:statechanged|state=Review}
      {set-label:being-reviewed}
   {trigger}
{workflow}

All examples

Filter by label

There are no items with the selected labels at this time.

See also

Workflow Authoring Guide: