Coder Social home page Coder Social logo

taylordaughtry / craft-brief Goto Github PK

View Code? Open in Web Editor NEW
44.0 5.0 6.0 47 KB

Quick, easy, and customizable user-group notifications for Craft CMS.

PHP 34.72% HTML 65.28%
craft notifications slack craftcms craftplugins craft-plugin craftcms-plugin

craft-brief's Introduction

Brief

Craft

Brief adds notification functionality to your Craft site. It's maintained by Taylor Daughtry.

Features

  • Control who gets notifications with Craft's native User Groups
  • Customize the email's suject with dynamic titles
  • Select who gets notifications for any section, or just a few sections
  • Notify Slack channels when a section is updated with new or edited entries

Installation

To install Brief, just follow these steps:

  1. Upload the brief/ folder to your craft/plugins/ folder.
  2. Go to Settings > Plugins from your Craft control panel and enable the Brief plugin.
  3. Click the gear icon next to the uninstall button, and add your settings.
  4. Click 'Save'. You're done!

Any users in your selected group will now receive email notifications when a new entry is added to your section. If you add new users to that group, Brief will add them to the notification list automatically; you don't need to do anything else.

How does it work?

Every time an entry is saved, Brief checks whether it's in the section you've specified. If it is, and the entry is enabled, Brief sends a notification email to the User Group you've selected. Note that it's a very light check to see if the saved entry is in your section; you won't have any performance issues if you're saving tons of entries everyday.

Usage

In Brief's settings, specify which section you'd like to be notified about. For example, if you'd like to be notified when an entry is updated or deleted in the 'News' section, you'd select News from the dropdown.

Also be sure and select a User Group. If you don't have any, Brief will ask you to go create one. If you don't have user groups and still try to use Brief, it won't send any emails so you don't inadvertently email every user on the site.

Custom Email Templates

Brief supports custom email templates. If you'd like to use one, just specify the template in Brief's settings, and Brief will render your template and send it.

You'll have access to the entry variable within any template you choose to render.

Slack Integration

Brief has Slack integration. Just paste your Slack webhook into Brief's settings, and we'll notify your selected Slack Channel whenever there's an update.

You can get a webhook for your team by going to your team's Apps & Custom Integrations page and creating a Custom Integration (Incoming Webhook). Select the channel you'd like to post to, then copy the Webhook URL provided.

Paste that URL into Brief's settings, and it'll let you know when entries are added/updated in your specified section.

Feature Requests & Issues

If you need a feature, let me know and I'll add it as soon as reasonably possible. Brief is actively maintained, and I accept relevant, feature-adding pull requests. If you encounter any issues, please open an issue and I'll work with you and patch the problem. Thanks!

Feature Roadmap

  • Add email templates from ThemeForest, CodeCanyon, and elsewhere that work with Brief automatically
  • Specify whether you'd like notifications for any entry, or just new ones.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.