Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I have a User field type of 'List (integer)' storing a list of nodes the User has subscribed to i.e. Forum items. I need to setup a notifications like rule to email all users that have subscribed to a particular Forum item advising them of when a new comment has been posted.

  1. Event = After saving a new comment (any user posting to a Forum item)
  2. Condition = Content is of type (Forum item)
  3. Action = ??? basically email all subscribed Users of this Forum item advising that a new comment has been posted

Logic something like:

Check each user -> field_list_of_followed_nodes[] where nid == 1 return TRUE

Don't know if this can be done in rules?

share|improve this question
What data is your custom field storing? It would be easier if this were based on the user's Role instead, as there'a an already predefined action to send email to all users containing a particular role. – AlexK Jun 4 at 12:29
Hi Alex, each user needs the ability to subscribe to individual nodes, the field data type is List (integer)containing node ids. – jdutoit Jun 4 at 23:20
This has been resolved using Rules and Flags, ill post the full solution when I have time to run through it. – jdutoit Jun 5 at 23:56
ah good to hear you found a solution. would be interested to see how you eventually tackled the problem. – AlexK Jun 6 at 8:10

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.