Giter VIP home page Giter VIP logo

autonotifications's Introduction

autonotifications

eZ Publish legacy extension to add automatic notification settings when a user registers, including digest settings.

SUMMARY

  1. Add automatic notification settings when a user registers, including digest settings.
  2. Command line script to add notifications and digest settings to existing users.

Based on work by Pierre Martel http://projects.ez.no/autonotifications

You can choose the user group and subtrees, it will add the notification on the subtrees only if the user is in the group.

LICENSE

GPL 2.0

TO INSTALL

  1. Install and activate the extension in the usual way:

    a. Copy the autonotifications folder to the extension folder.

    b. Edit settings/override/site.ini.append.php

    c. Under [ExtensionSettings] add:

     ActiveExtensions[]=autonotifications
    

    d. Reload the autoload arrays

     bin/php/ezpgenerateautoloads.php
    

    e. Clear the cache:

     bin/php/ezcache.php --clear-all
    
  2. In the admin interface, create a workflow that contains this event:

  • Choose which object versions should cause the notifications to be set. Typically you will want only publishing a new user object to add notifications. Otherwise notifications will be added every time the user's profile is updated.

  • Select the user groups that will be affected

  • Select the subtree notifications that will be added to the users.

  1. Save the workflow.

  2. Typically you will want to bind the post-publish trigger to the workflow you've created. However, sometimes you want to add notifications when a user object is moved from one user group to another. If so, you should bind the workflow to the post-move trigger instead. You will need to activate this trigger in settings/override/workflow.ini.append.php:

     <?php /* #?ini charset="utf-8"?
    
     [OperationSettings]
     AvailableOperationList[]=content_move
    
     */ ?>
    
  3. Override the digest settings with your own settings in settings/override/autonotifications.ini.append.php

USAGE

If you want to add notifications to existing users (as if they had just registered) then after setting up the workflow run:

php extension/autonotifications/bin/php/update_existing_users.php

autonotifications's People

Contributors

eab-andy 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.