Hello,
I wrote a sandbox project Workbench Notify which implements sending automatically notifications to section's editors specified in Workbench Access, on a transition state set in Workbench Moderation.
Differences with Workbench Email
- Workbench Email presents to the content creators a list of users that they can email the content updated. But if you use Workbench Access to assign editors to some specific sections of the website, the users list presented to the content creator becomes irrelevant, because the list contains all the users whose role has been set accordingly in the email transition, but these users do not necessarily have the permissions to moderate or edit the content on the specific section where it has been posted.
- Workbench email needs a manual action from the content creators, while workkench Notify send automatically notifications.
it would be interesting to merge features of workbench notify in workbench email, in order to have a single module that handles notifications for Workbench suite.
For example, in the UI,
if workbench Access is enabled (it doesn't make sens to notify automatically if workbench access is not used) then administrator could activate sending automatically notifications to the checked role. Then all users, defined individually (but with the role) or by their role, on the content's section, in workbench acces would be notified.
If automatically notifications are not set, then the user list presented could be filtered according to the rights on the sections defined in workbench access
What do you think about this?
| Comment | File | Size | Author |
|---|---|---|---|
| #9 | Issue-1952556-support-workbench-access-and-sending-a.patch | 4.26 KB | sylvain lecoy |
Comments
Comment #1
flocondetoiletitle updated
Comment #2
themusician commentedThis is a fantastic addition. I have been exploring how to do this with the Rules module but using Workbench Email or the sandboxed Notify module would be better.
Like flocondetoile we use Workbench Access to determine who will be able to Publish content for specific sections of the the site.
Comment #3
teknic commentedHey flocondetoile, this hasn't dropped off my radar. The addition of workbench access checks in this module is necessary to complete its merge into the family of workbench. I also like the addition of automatic notifications, I'm not 100% where I would place that setting etc but it seems like a easy addition that could be of use.
Thanks for the suggestions and stay tuned.
Comment #4
teknic commentedHey guys,
Pushed a new version of Workbench Email, 7.x-3.0-rc1. This branch includes both workbench access integration and auto notify options.
@flocondetoile, thanks for the workbench_notify code, you can see I used a lot of the same functionality you had laid out.
http://drupal.org/node/2005726
Comment #5
flocondetoileThanks,
I will go to test the new version and give you a feedback
Comment #7
bès commentedHello, thanks for the work, this module will fill a really missing part of workbench :)
I did some test on the 7.x-3.0-rc2 https://drupal.org/node/2007676, here some feedbacks :
I couldn't give a patch now, but will try to do it later.
Comment #8
bès commentedComment #9
sylvain lecoy commentedHere is a patch from the 7.x-2.2 tag.
It basically do the following when 'workbench_access' module exist:
- Adds an ajax callback on the 'workbench_access' selector (works for multiple sections, too) which refresh the list of user to send an email to.
- Build a 'children to parent' array of section given a workbench section.
- Filters the list of user to return according to this array so only the user affected to a section or a parent section of the content being edited will appear in the list of potential users to notify.
Comment #10
Jonshock commented@Sylvain Lecoy
When attempting to use the patch you submitted, the memory buffer is exhausted. Appears to be an infinite loop.
Comment #11
teknic commentedThe newest version of the module is out and supports above functionality request.
Comment #12
teknic commented