Giter Club home page Giter Club logo

collective.contentrules.subscription's Introduction

This product will add to Plone a new content rule, similar to the default "Send an email" ones, but email recipients are taken from a list of addresses that are subscribed for that rule.

Use-case

We want to notify about some updated of the site, and we want to allows users to subscribe or not to these notifications automatically.

We can do this with a contentrule registered for some object creation, and use our new action to send emails.

Setting up the rule

This product provides a new rule action to connect with base Plone rules. When you create a new action, you need to fill some fields:

Subject

The e-mail subject. You can place inside this text some markers.

Sender email

The sender of the e-mail. If empty, will be automatically used the one set in portal mail settings.

Message

The body text of the e-mail that will be sent. The text is the same for all section where the rule is activated on.

You can place inside this text some markers.

The list of markes is shown at the bottom of action's edit form.

Rule subscription

As we said previously, site managers can create some rules, and users (also anonymous users) can choose which rules subscribes to.

To do this, there is a simple form created with z3c.form that shows all available rules with our custom action.

The form is available at "http://site_url/@@notify-subscribe"

image

If the user is authenticated and have an email address, email field is automatically filled.

There is also an anti-spam check made with collective.z3cform.norobots.

Subscriptions overwiew

There is also an overview controlpanel for site administrators that shows all rule subscriptions and allows to remove some addresses.

This view is available from Plone controlpanel or at "http://site_url/@@contentrules-subscription-controlpanel"

image

To-do

  • Allow users to unsubscribe
  • Improve subscription security using some confirm machinery

Requirements

This product has been tested on:

  • Plone 4.0
  • Plone 4.1
  • Plone 4.2
  • Plone 4.3

Authors

This product was developed by RedTurtle Technology team.

RedTurtle Technology Site

collective.contentrules.subscription's People

Contributors

cekk avatar naro avatar

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.