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

ci

cov

docs

Supported Python versions

Latest Version

License

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)

Support

If you are having issues, please let us know:

chat

License

The project is licensed under the GPLv2.

One Last Thing

Originally Made in Berlin, with love, by your friends @ Briefy.

Now maintained by Pendect.

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

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]