Publishes results from a form (contact, etc) to a slack channel πŸ”Œ
Switch branches/tags
Nothing to show
Clone or download
Latest commit 62d5e1c Sep 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore first commit Sep 12, 2018
CHANGELOG.md first commit Sep 12, 2018
LICENSE first commit Sep 12, 2018
README.md first commit Sep 12, 2018
blueprints.yaml first commit Sep 12, 2018
slack-webhook.php first commit Sep 12, 2018
slack-webhook.yaml first commit Sep 12, 2018

README.md

Slack Webhook

Publishes results from a form (contact, etc) to a slack channel.

Usage

Step 1: add your incoming slack webhook endpoint in the plugin configuration Step 2: add these two lines in your form process:

- slack:
    body: '{% include ''forms/data.txt.twig'' %}'

See a Contact Page example from the official documentation.

You need to add the slack support wherever your want in the form process.

Please be aware that form processes are computed sequentially, always trigger actions after the captcha verification for security purposes.

Installation

Using GPM (preferred):

The simplest way to install this plugin is via the Grav Package Manager (GPM) through your system's Terminal (also called the command line). From the root of your Grav install type:

$ bin/gpm install slack-webhook

This will install the Slack Webhook plugin into your /user/plugins directory within Grav. Its files can be found under /user/plugins/social-seo-metatags.

Manual Installation:

In /user/plugins folder, apply the following command:

git clone https://github.com/Orbmancer/grav-plugin-slack-webhook slack-webhook

This will clone this repository into the slack-webhook folder.

Troubleshooting

You can open a new issue if you have any troubles, and I'm reachable on twitter @damien_bry.

Contributing

Feel free to fork and submit a pull request if you want to upgrade the plugin yourself. All your suggestions are welcome.