Slack Content Rules Action¶
contentrules.slack is a package providing a Plone content rules action to post a message on a Slack channel.
Contents¶
contentrules.slack¶
contentrules.slack is a package providing a Plone content rules action to post a message on a Slack channel.
Read the whole documentation.
Code Health¶
Installation¶
Install contentrules.slack by adding it to your buildout:
[buildout] ... eggs = contentrules.slack
and then running buildout:
$ bin/buildout
Translations¶
This product has been translated into:
English (Érico Andrei)
Português do Brasil (Rudá Porto)
Deutsch (Yael Biran)
Español (Álvaro Hurtado Mochón)
Contribute¶
Issue Tracker: https://github.com/collective/contentrules.slack/issues
Source Code: https://github.com/collective/contentrules.slack
License¶
The project is licensed under the GPLv2.
Usage¶
Content rules action to post a message on Slack.
New content rule¶
Go to the Site Setup, then click on Content Rules.

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.

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

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

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

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

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

Now, apply this rule to the whole site.
The next user login will sent a message on the Slack channel.

Contributors¶
Érico Andrei, ericof
Rudá Porto, rudaporto
Álvaro Hurtado Mochón, alvarohurtado84
Yael Biran
Changelog¶
1.0.2 (unreleased)¶
Nothing changed yet.
1.0.1 (2020-04-25)¶
Fix “TypeError: expected string or bytes-like object” when one attribute of action is not set. [ericof]
1.0.0 (2019-11-28)¶
Add Plone 5.2 / Python 3 support. [ericof]
Drop Python 2.7 support. [ericof]
1.0.0a1 (2017-10-17)¶
Initial release. [ericof]