ezpublish-legacy-extension autonotifications
Add automatic notification settings when a user registers, including digest settings
eab/autonotifications
Add automatic notification settings when a user registers, including digest settings
- Saturday, February 27, 2016
- by eab
- Repository
- 1 Watchers
- 1 Stars
- 10 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 1 Forks
- 0 Open issues
- 2 Versions
- 11 % Grown
autonotifications
eZ Publish legacy extension to add automatic notification settings when a user registers, including digest settings., (*1)
SUMMARY
- Add automatic notification settings when a user registers, including digest settings.
- Command line script to add notifications and digest settings to existing users.
Based on work by Pierre Martel http://projects.ez.no/autonotifications, (*2)
You can choose the user group and subtrees, it will add the notification on the subtrees only if the user is in the group., (*3)
LICENSE
GPL 2.0, (*4)
TO INSTALL
-
Install and activate the extension in the usual way:, (*5)
a. Copy the autonotifications
folder to the extension
folder., (*6)
b. Edit settings/override/site.ini.append.php
, (*7)
c. Under [ExtensionSettings]
add:, (*8)
ActiveExtensions[]=autonotifications
d. Reload the autoload arrays, (*9)
bin/php/ezpgenerateautoloads.php
e. Clear the cache:, (*10)
bin/php/ezcache.php --clear-all
-
In the admin interface, create a workflow that contains this event:, (*11)
-
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., (*12)
-
Select the user groups that will be affected, (*13)
-
Select the subtree notifications that will be added to the users., (*14)
-
Save the workflow., (*15)
-
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
:, (*16)
<?php /* #?ini charset="utf-8"?
[OperationSettings]
AvailableOperationList[]=content_move
*/ ?>
-
Override the digest settings with your own settings in settings/override/autonotifications.ini.append.php
, (*17)
USAGE
If you want to add notifications to existing users (as if they had just registered) then after setting up the workflow run:, (*18)
php extension/autonotifications/bin/php/update_existing_users.php
dev-master
9999999-dev
Add automatic notification settings when a user registers, including digest settings
Sources
Download
GPL-2.0
The Requires
0.9.0
0.9.0.0
Add automatic notification settings when a user registers, including digest settings
Sources
Download
GPL-2.0
The Requires