Comala Workflows is now Comala Document Management. Click here for the latest documentation.

Overview

Use the {remove-label} macro to remove a content label – either the current page or blog post, or the immediate child pages.

Where to use it?

Optional.

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

Parameters

Parameter

Required

Default

Notes

unnamed first parameter
or label

(tick)


Name of label to remove:

children


false

What should the label be removed from?

  • 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:

  • labelremoved

Example

{workflow:Labelled}
   {state:Editing|submit=Review}
   {state}
   {state:Review|rejected=Editing|approved=Review}
      {approval:Review}
   {state}
   {trigger:pagerejected|approval=Review}
      {remove-label:being-reviewed}
   {trigger}
{workflow}

All examples

See also

Workflow Authoring Guide: