Closed (fixed)
Project:
Rules
Version:
6.x-1.0-rc2
Component:
User interface
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2009 at 17:00 UTC
Updated:
4 Dec 2010 at 08:02 UTC
Hi,
I am quiet sure that this works - but I don't find the correct way to manage it with rules ...
I have a CCK content type with a userreference field.
If new content is created and the field is filled (or if the field is changed on edit) I want to inform the referenced user on the new content.
Also, if there is content created with a nodereference to the content above, I also want to inform the referenced user.
Is this possible with rules? And what is the correct way to do it?
Kind regards
Comments
Comment #1
epop commentedCreate a triggered Rule
Then in conditions choose "Content has type" - choose the type with your user reference field in it.
In the actions you then need to "Load a referenced user" choosing to load the user reference you want the mail to go to. read about aruments configuration
Then another action "Send a mail to user" and choose the argument you created in the "Load a referenced user" action.
Comment #2
vistree commentedThank you for the explanation - this works well!
Comment #3
klausimarking as fixed.
Comment #5
my-family commentedIs it possible to send message to more users? (CCK node reference with more or unlimited number of values)
Thank you in advance for help (and thank you for this nice module).
Comment #6
mayerwin commented+1
Comment #7
davidbessler commentedThanks for explaining that. It is a common use of Rules and should be explained in the documentation!
Comment #8
my-family commentedBtw, I have already found out how to send message to more users (but it is a workaround):
1. I have CCK field with userreference and unlimited number of users
2. I have computed field (Computed Field module) which generates a comma separated list of e-mails on the basis of the userreference field.
3. In rules I use the action "send e-mail to the arbitrary mail address" which uses the Computed field value as token.