Usage

Content rules action to post a message on Slack.

New content rule

Go to the Site Setup, then click on Content Rules.

Content rules control panel

Click on Add content rule and a form to create a new content rule will be displayed.

We are going to create a content rule to report every time an user logs in to a Plone portal.

A form to add a new content rule

After saving the form, it will be possible to configure the conditions and actions of this content rule.

For this example we will only add an action to Post a message to Slack, select this option and click Add

Edit content rule page

This will bring a form to configure the content rule action.

Add action form

Here is a breakdown of how fields setting in this form will affect the message on Slack.

Annoted message

It is possible to use variables on some fields, as displayed here.

Filled Add action form

Saving the action form, will bring us back to the content rule configuration.

Apply rule on site

Now, apply this rule to the whole site.

The next user login will sent a message on the Slack channel.

Message on Slack