Support

Events happening in the community are now at Drupal community events on www.drupal.org.
Questions on Rules usage should be submitted to the issue queue if documentation does not yet exist. This isn't the right place for them.
fermicoder's picture

Update reference lists

Hi.
I'm new to rules, and after reading the documentation I have an idea of how things work, but can't seem to figure out how to solve the problem that I have.

I have terms from vocabulary 1:services, and terms from vocabulary 2:areas. Areas have a list of references to services (a list of checkboxes, and all the services are checked).
I need to make a rule that for every new created service, the list in every area gets updated so that the new service gets checked as well.

Can anyone please help me? I'm really stuck. Thanks.

Read more
playfulwolf's picture

How to add user to OG 7.x-2.x group with rules?

Hi,

Have a hard time figuring out how to add user to some OG group automatically on lets say user registration.

The first part is easy, event:
"After saving a new user account"

Condition: none

Action:
"Subscribe user to group"

...and then I am stuck.

For example, my OG group is nid 3.

Any clues?

Read more
djween's picture

Using Loop in Action for email recipient list but filtering out specific loop items

I am using a Loop in Actions to generate a list of email recipients.

This list is based on a reference field in the node.

The field is generated from a view and is based on the node author's 'friends' (friended via the user relationship module). The node author has selected which friends can view the specific node when created.

I have a child action under the loop to email the friends the node author has selected--via the reference field--for this node. The rule in general is triggered when the node or comments are created or updated.

Read more
cossovich's picture

Using Rules configuration in Page Manager to select Panels variants

I've just discovered the Rules module and I've got it handling some business logic on my Drupal project... in a word it's AWESOME.

I had setup a rule to handle a number of different panel pages (via URL redirects) but then I noticed that there's a "Rules configuration" context available which also allows you to add the rule configuration to the "Selection rules" for a panel variant. I haven't been able to successfully get my rule working as a panel selection rule but I suspect I'm missing some piece of the puzzle.

Read more
eliaspallanzani's picture

add element to a list of date - convert text to date

Hello.
i don't understand how to set the value of a date field.
With Rules, I add a variable "list of datE", then I use ruleviews to collect the rows. Each element is a text like "28/11/2012" (the format is european, not american).
Then i iterate the display and for each element i try to add the element to the the list of date
But my element is a text string and i cannot convert in a date format.

If i use a variable of type "date" (not list of date), i can't set is value with an element of the list and with the content of another field date(.

Read more
playfulwolf's picture

How to add user to some group during registration AUTOMATICALLY

Hi,

Have some kind of "default" group, and want user to became user of this group automatically during new user registration.
There is a similar module, but I want full automation.

How to write a rule for that?

Read more
playfulwolf's picture

How to increment filed value of group type node when someone joins the group

So, I am desperately missing OG statistics module for 7.2. There seem to be a way to recreate count functionality it with some Rules help.

I need to build simple counter, which increases +1 when there is new member in the group

What I do:

  1. Create "field_user_counter" on group type node
  2. Clone rule "OG member subscribe (Active)" which comes included with OG
  3. On new rule "Actions"...

I'm stuck on this point.
Any ideas?

Read more
pene's picture

Send the actually attached file's url within an e-mail

I have a Drupal 7 site with a custom node type with a custom attachment field. After a (kind of this custom) node has been published, I got an e-mail with the help of Rules module. I would like to set up an another rule, which sends me an another e-mail, when somebody edits this node and uploads an attachment. Inside the mail, I want to see the full url to the uploaded file.

After a several test, I'm not able to insert the full path to the uploaded file. The [node:field-attachment:file] doesn't work at all. I'm able to insert (manually) the url where this file resides, but after I can not insert the file name (so even the filename would be enough for me).

So with the [node:field-attachment:file] I got an error: Fatal error: Call to a member function value() on a non-object in /home/xxx/sites/all/modules/entity/entity_token.tokens.inc on line 297.

Read more
wipeout_dude's picture

Rule to stop a node being deleted..

Hi,

I need a rule to stop certain nodes being deleted based on the value of a field..

So as an example..

Event : Before node is deleted
Conditition : field1 = 1234
Action : Don't delete the node

Obviously (as far as I am aware) these events and actions don't exist..

Anyone have any ideas how to achieve this functionality?

Thanks..

Read more
littlekellilee's picture

Need Guidance Combining Roles, Rules, and Ubercart

I have a site that I've designed that requires the use of changing a users role based on whether they've bought something from the store. I've decided that I want to do this using Rules.

I need it to check that the order is completed, then add the role Paid to the user.

So far I have the following:

Event: Order status gets updated (I had tried this on Checkout is completed but it wasn't working)

Conditions: NOT User has role(s) (Parameter: User: [site:current-user], Roles: paid user)
AND
Check an orders state (Parameter: Order: [updated-order], Order state: Completed)

Read more
Subscribe with RSS Syndicate content

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds:

Hot content this week