Add automatic notification settings when a user registers, including digest settings
eZ Publish legacy extension to add automatic notification settings when a user registers, including digest settings.
- 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
You can choose the user group and subtrees, it will add the notification on the subtrees only if the user is in the group.
Install and activate the extension in the usual way:
a. Copy the
autonotificationsfolder to the
d. Reload the autoload arrays
e. Clear the cache:
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.
Save the workflow.
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
<?php /* #?ini charset="utf-8"? [OperationSettings] AvailableOperationList=content_move */ ?>
Override the digest settings with your own settings in
If you want to add notifications to existing users (as if they had just registered) then after setting up the workflow run: