D7 Rules

We encourage users to post events happening in the community to the community events group on https://www.drupal.org.
NonProfit's picture

Understanding the Data selector

I would like to add a comment to the OG node each time a user becomes a member of the group using Rules 7.x-2.0. (Odd use case, I know, but believe it or not it really does make sense in the context of the site.)

My Process:
React on Event: "User has become a group member"
The Action will be "Create a new entity," "comment" but my data selector is lacking fields so I need to use the condition 'entity has field' (or 'content is of type').

It seems we'll need to load the GID.

Add condition:
"Entity is Group" with the Data selector "site:current-group."

Read more
vishalkhialani's picture

Using Rules to email multiple users in drupal 7

Goal: To send a email to a multiple users informing him that a product ( content type ) he bookmarked ( using Flag module) has been updated.


Few things to consider:


If many products get updated then one email with a summary should be sent out.


Each user using flag module selects his product of choice.

Where I am stuck using the Rules Module:

I can't seem to get the condition right in rules so that it executes the way I want it.

Read more
dsearle's picture

How do I get a field (of a custom type) to appear in the Data Selector?

Hi everybody, I'm using a development version of the WebSite Screenshot module which creates a new Formatter and Widget for fields to display screenshots (powered by a screenshot service) of URLs entered into the Drupal system. I have the URLs coming into one text field and I want to copy this value into the custom field created using the Screenshot type. My problem lies with the 'Set a Data Value' action.

Read more
chintan4u's picture

How to handle " Pre unpublish validations" ....?

I want to add a workflow for unpublished content using Rules.
scenario is like this:

1.The normal user can request to unpublish content.

2.A mail wiil go to admin & editor that "xyz content is pending for unpublish"

3.Admin will review it & whtever action will take.

Now here in point 1, I want to create an event " request for unpublish content"

I referred this post but my idea is not clear for this case
http://drupal.org/node/298549

in short i need action "pre unpublish" like we have presave.

any suggestion ....guys...??

Read more
Subscribe with RSS Syndicate content