I all,
I'm using Rules, Organic Groups, Organic Groups User Roles (OGUR) and Workflow modules in my web site:
- There are group Moderators and Editors
- Moderators and Editors belonging to a certain Group cannot interact with other Groups Moderators and Editors
I have a lot of rules associated with "Workflow state has changed" event: all works fine, except for a particular rule that doesn't work in the right way: I need that when a Editor put his article in "to approve" workflow state, the system send an email to his moderator.
If I used "Send a mail to all user of a role" chosing "moderators" from list of roles, the email will be send to all moderators of all groups. I don't wont this, I want that the email will be send ONLY to the moderator belonging to the same group of the editor.
I'd need something like "Send a mail to all user of a role (moderators) belonging to the same group of the author user (the editor)"
How I can achieve this?
Thank you very much for your help...
MXT
(sorry for my bad english)
Comments
You're in for a tricky task
I've spent some time researching how you can do what you ask for (with Rules). Here's what I've found:
Best of luck,
//Johan Falk, NodeOne, Sweden
PS: I recently wrote a blog post on combining Rules with Views Bulk Operations. It might be of use. http://nodeone.se/drupal-planet/make-rules-dance-with-views-bulk-operations
I'll try for sure
Thank you very much spending time to help me, I've appreciated it very much.
Also I read your blog post: it's very useful and helped me to understand potentiality and mechanisms using Rules in combination with Views Bulk Operations.
I'll try your suggestion: It seems quite complicated for my skills, but... I'll try!!!
Thank you very much
MXT
First problem
How I can do this:
If I haven't OGUR user roles filters and fields? Notice that OGUR roles are different from CORE roles. How I can retrieve users with a specific OGUR roles?
I've already made a feature request in og_user_roles issues: http://drupal.org/node/729256
Thank tou very much!
MXT