Hello,
I've a problem with data selector.
I use d7, rules 7.x-2.0-rc1 and entity api 7.x-1.0-beta10
I have enabled these modules but when I try to create a rule, I've few data selector.
I've only "site:" and other "site:*" but anything else.
I have read this http://drupal.org/node/1027546 and I have watched this http://nodeone.se/node/897
I have seen that there are another data selectors as "node:"

Why I haven't this?

(note: clear cache by drush successfull)

Comments

zhangtaihao’s picture

Component: Rules Core » Rules Engine

Which events do you have for your rule? Those (and certain actions) determine which types of selectors are available to you.

For example, if you have only the event "Drupal is initializing" (which Rules provides on behalf of system.module, I think), you will not have the "node:" values because that event simply does not provide a "node" result to be used as parameter in subsequent actions. To get "node:" values to use, you would need events like "Content is viewed" or actions like "Fetch entity by id" (and set the type to node) because those provide a node as a result of their behavior.

If you find that the correct value is showing up after you've checked that you have the correct events/actions, please set this issue to "fixed" so other people can reference this.

ts145nera’s picture

Status: Active » Fixed

Well, you're big master
It's work
Thank you

zhangtaihao’s picture

Category: bug » support
Priority: Critical » Normal

Updating issue properties.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Yet Another User’s picture

Version: 7.x-2.0-rc1 » 7.x-2.5
Component: Rules Engine » Rules Core
Status: Closed (fixed) » Active

Hi,

I have the same issue, i want to use [node:field-user-email] data selector.
In the rules, I have chosen "After updating the comment" in the event.
I want this rule to send an email to the creator of the content notifying him that he has received a comment.
When I choose any node event in the rule, then I see this data selector in the replacement pattern. But I want it when the comment is published.

Please let me know how do I use it?

Thanks

tr’s picture

Issue summary: View changes
Status: Active » Fixed

The original issue was answered and closed. #5 reopened this with a different but similar question which is equally well answered by #1. If you're still in need of support then open a new issue.

tr’s picture

Status: Fixed » Closed (fixed)