Quantcast
Channel: Recent posts across whole site
Viewing all articles
Browse latest Browse all 49208

Problems sending emails to all users in a node reference field

$
0
0

I’m trying to put together a site that allows me to enter projects and on a workflow change will send and email to all users that I’ve added to a node reference field a notification of the workflow change.

Here’s the list of modules I have installed so far to try to accomplish what I’m doing:
Rules 6.x-1.4
Views Bulk Operations 6.x-1.x-dev
Views 6.x-3.x-dev
Workflow 6.x-1.5
CCK 6.x-3.x-dev

Here’s what I’ve done so far:

  1. Created a Content Type called “Project”.
  2. Added a Workflow to “Project”.
  3. Added a User Reference “field_manager” to “Project” with the Number of Values set to Unlimited.
  4. Created a Rule Set that with the Content and User arguments called “Workflow Changed Send Notifications”. (I will later add a triggered rule on Workflow Change to call the VBO that emails all Users).
  5. Added the following actions to “Workflow Changed Send Notifications”
  • Load a Referenced User from Content and “field_manager”
  • Show a configurable message on the site and just used the [node:field_manager-uid] so that I can see what users it will be performing the action on. (This will simply change to Send user a mail when I get it working.)
  • Created a node based view with the following:
    • Arguments – Node:Nid set to provide the default Argument based on the URL. (This is also called out in the rule using return array($object->nid)).
    • Relationship – Content:field_manager set to require this relationship.
    • Fields – (field_manager) User: Uid Uid set to use the field_manager relationship and Node: Nid.
    • Added a page for testing at node/%/notify
  • When I go to node/%/notify it asks for my Content and User, so I enter the following arguments: return array($object->nid); for Content and return($context[‘row’]->node_data_field_manager_uid); for User.
  • When I click the checkboxes for the users I want to send the items to and press the “Do Action” button, I’m only getting the author’s Uid, and not the referenced users’ Uids.
    I’m not really sure where to go from here, but would appreciate any help that anyone can offer to help me figure this out.


    Viewing all articles
    Browse latest Browse all 49208

    Trending Articles