Rules
This is a working group for people interested in the rules module.
The group serves as a place to discuss new features and possible use cases of the rules module in drupal.
Furthermore it's used to announce recent developments related to the group.
Check the developer's blog for rules related news.
Read and help improving the documentation.
Email sending with rules, taxonomy and content profile
I'm new to rules and trying to create rule that send email all users with same
taxonomy term when "NEWS" content type is published.
Below is summary what i have created, I don't know how to load all user email addresses where
newscategieries-tid is one of "referenced_news:field_newscategies-tids".
----
conditionCreated content is NEWS
AND
conditionCreated content is published
DO
actionLoad a referenced node "created_content"
actionLoad a term [referenced_news:field_newscategies-tids]
What is wrong?
Hi,
i'm new to rules, i'd like to set a var on one page (an author-id) and read it on next page.
If i try to echo or var_dump the created var, i get NO output (even lines like echo "hello"). http://pastebin.com/m7677e84d What am i doing wrong?
[Solved] How to get Rule Scheduler to Honor Timezone Setting
I've defined a rule that schedules another rule:
ON event After saving new content
IF
Created content is Page or Story
DO
Schedule {action}: Scheduled Publishing {rule set}
I've defined a CCK field: Publish Date
The rule is set to schedule using the token: [node:field_publish_date-datetime]
In the node edit screen, the CCK field displays time that matches my current time zone as set both on my test server itself and in the Date module settings page: Eastern Standard.
On the Scheduled rules page however, the time for the scheduled rule is 5 hours earlier, so if I select 10:00 a.m. for example, the schedule shows 05:00.
Where is it picking up this setting and how can I fix it?
[Solved] Attempting to Build Custom PHP rule
I am building a scheduled publishing rule set. I would like to have a php action that resets the created date on the node to the scheduled publishing date as the node is published. I found a clue in the issue que: http://drupal.org/node/641590
Question to the selected user can only reply by this user rule. How?
I want to found a ask to the expert system. There are many experts and they have profile pages. User can select the expert and go to the experts profile page. There will be a link or a form in the expert's profile page and this will be a node type for this expert.
For example: To ask a question to doctor1 user will select his profile, in his profile there will be a link or form 'ask to doctor1' and this will create a node which content type is doctor1. My idea is to make comments as answers and only doctor1 can be able to comment to this node type.
How should I do that by ruling?
Add Rule After Login - Unpublished Content Requiring Review
Hi There.
I successfully added a Rule -- ON event User has logged in, DO show a configurable message on the site.
Basically, I want to add logic to this -- show message IF there is unpublished content. I allow anonymous users to submit a specific node, and admins can choose to publish or delete the content after reviewing. I already have a notification email that goes out, this is just another feature I would like to add.
Links, Views, triggers
I am looking for a way to trigger rule from views result. I started issue with http://drupal.org/project/rules_executor just to see how author looks at this. And maybe there are some other ways to get what I want, but here is the idea.
Views render list of node titles and displays them as links. Links triggers rule(s).
How can I remove rules when not logged into drupal?
Hi, I accidentally created a rule that creates an infinite loop for any logged in user, in essence rendering my site unusable. I was able to remove the rules module to get the site working, but now I can't use rules as each time I add the module back in it restarts the problem.
Is there a way to remove individual rules or all of them from out side of drupal? Where are the rules stored? Would just deleting them work?
Thanks
Omar
How to pass an nid to another page containing a view - or maybe the looney bin wouldn't be so bad, after all...
I think I am trying to do something fairly basic, but it is proving enormously difficult to find the documentation, or examples to accomplish it.
On submission, I simply want to send the nid of my CCK form to my url and send that on to another page. I have been trolling, working through the API, trying php snippets, reading, experimenting, buying Lullabot videos, going through tutorials, trying, installing, uninstalling, reinstalling - to the point I'm ready to go find a nice, quiet job at McDonalds.
role expiry triggering content deletion
Hi,
I was wondering if anyone has any ideas on how to implement part 'd' of the below problem please?
a)User is assigned role X
b)Role X allows user to create ‘products’
c)User is removed from role X
d)‘Products’ created by user are deleted
Any help is appreciated- thanks in advance!
Evelyn
Examples of datetime field form validation w/Rules?
I'm working on a Drupal 6 site that includes the ability to book resources (meeting rooms, projectors, etc). When somebody submits a new reservation/booking, I need to validate the reserved time to make sure it doesn't fall outside of business hours. I was hoping to do this with the Rules module, as I'd like the ability to change the validation criteria via the Drupal web UI.
Rules 7.x-2.x Development Update
I'm currently working hard on the drupal 7 compatible 2.x version of Rules. So what's new?
- The whole API has been revised, so it's more modular, extensible and easier to use. So now all rule elements (conditions, actions, ORs, ANDs, LOOPs) are reusable components on its own, e.g. a module not interested in Rules could easily reuse just the conditions.
- New rule elements may be contributed by modules. Rules comes now with support for loops (and data lists) too.
Copy taxonomy terms from nodes to CCK-nodereferenced node.
With Rules, is it possible to copy taxonomy terms from nodes X, Y and Z to node N? Nodes X, Y and Z would contain a CCK nodereference field to reference node N.
Update, Delete trigerred rules for a given content type
I have a content type Education, used by the user to fill in his/her educational information. I want to use rules to redirect the user to his profile page, whenever a user creates, updates or deletes his/her educational information. I have been able to do it for create but how do I do it for update and delete?
Thanks for reading this.
Approach for assigning a user to a certain role based on user profile (locative) data
Hi there,
I have my first Drupal site up and just polishing up some of the UX / Business rules elements of the site.
I need to be able to assign users to ttwo different roles based on their user:location_country attribute.
If they are from US/Canada - they go to one role, otherwise they go to another role.
I know i have to execute some PHP when the User is created, but i am not sure of the syntax or how to set it up.
Any assistance would be greatly appreciated.
Regards,
Kit
Trigger rule argument confusion
I have a node profile field using content profile. That profile field has a drop down list that contains a status value (approved, rejected, pending, etc). I would like to create a cck_field_has_value rule based on that value. The idea is this, when the value is 'approved' the rule would:
- Publish the profile node
- Subscribe them to a group
I can get the profile node published, but when I add the subscribe to a group action the only possibilities for the selected group are 'changed content' and 'unchanged content'. I assume that the type of rule I created defines the arguments. in my case I don't need a dynamic group, I always want to subscribe them to the same group. How can I do this?
Upon forum post, send email to a certain person (not admin)
I watched a video pertaining to Rules and thought I would be able to use it to send an email to a certain User when a specific forum receives a post. Action/Triggers doesn't provide this (as far as I can tell). So I have the Rules module installed, however, it doesn't look like this is an option. It looks like admin would get an email if ANY comment is posted, but that's not what I'm after. First of all, am I right that Forum posts are considered "comments?" And then, is it possible to have a specified User receive an email alert when his forum receives a post?
How to define rulesets in Views Bulk Operations Module?
Hi,
I am trying to use the VBO module.. Here i need to get the rulesets which are defined in the Rules Module... could someone help me to solve this issue????????????
Thanks,
Ajmal.
Need help with a question I posted on the issue queue
Hi, can someone please help with this question:http://drupal.org/node/661798
In short, can I use Rules to publish content created one year ahead of time. The content needs to bu published one devotional one day at a time. Can I do this with one Rule, or do I have to create one Rule for each day
Thanks
Using rules to send a reminder (alarm) to the assignee of a case and instead of the author of a node
I am using Rules to send a reminder for cases in open atriums case tracker based on a date field. I came quite far (http://drupal.org/node/652158), but I'm having trouble sending the mail to the right user. Right now, the mail goes to the author of the node. I would like it to go the assigned user for that case however. The assignee is not a content field, but a custom value created by the case tracker module. In views I can use case tracker fields, but the case tracker context doesn't show up in the rules argument data type list.





