create rules in external text editor?
Hi,
In principle I understand how to make rules within D7.
In fact rules are a bit like an event based programming language for
drupal.
Is it possible to develop rules for use within drupal, but outside of drupal, e.g. using a text editor? I imagine hand-writing rules in a text file, similar to a php program and then uploading them into a running drupal instance.
Probably this also would require that uploaded rules can be edited within drupal to correct errors or change e.g. conditions.
Is this possible / supported?
thanks,
weathersmile
Read moreSend node as HTML formatted email to all users of a role
I have a RULE that works well:
- After saving a new content of type DEMO
- Send node as HTML formatted email
Parameter: Send email to:doe@example.com,jane@test.com
What I need is to send the same Action but to a "users of a role", something like:
- After saving a new content of type DEMO
- Send node as HTML formatted email
Parameter: Send email to: Roles: Editor ---RULES does not allow to add roles here---
Is there any module that can expand this function in RULES? Or is there some way to achieve this directly within RULES?
Read moreRules Email notifications
Hi everyone!
I hope that someone can help me better understand what I'm missing with the rules module. I'm curious if you can create a rule that will only fire once when a field selection has been selected. For instance, say you have a multi-page form for a content type. Once it reaches the end of page 3 you give individuals an option to send for approval. If they make the selection it would email a designated person (based on a previous selection, let's say by location). Right now I have a rule set up to accomplish this.
VBO vs entity_property_info_alter to provide a list
Thanks to the screencasts by Mr. Falk, I have written a simple custom module to provide a list for rules that has the node IDs of all the pages in a book. This is a global variable provided by the entity API and it works great. Currently I think the only "out of the box" list regarding books is the ancestor: lists and they don't contain branches or children.
My plan is to use this list to perform actions and conditions on books like providing page numbers, deleting, flagging, and (I may be dreaming here) compile all pages into a pdf file for printing.
Read moreTrigger a rule based on the time in a date field..
Hi,
Seem to be a little stuck..
I have content that has a date field with a start and end date and time..
I want a rule to trigger if the node:field-date:value is between 8am and 8:30am.. I have been trying to create a condition of "Data Comparison" where node:field-date:value is greater than "07:59:59" and another condition where node:field-date:value is lower than "08:31:00".. Even running where node:field-date:value is lower than "08:31:00" on it's own doesn't seem to work..
I assume the correct strtotime syntax is simply hh:mm:ss to apply to any date?
Read moreRules components running other components..
I need to create a situation where a rules component is scheduled to run on certain nodes selected from a VBO view on a certain date, the component then runs another component as part of it's actions..
So in other words..
VBO View schedules Component 1 for a certain date..
On that date Component 1 runs and executes its actions and executes Component 2 which executes its actions..
The issue is that the Component 1 is running but Component 2 isn't..
If I execute Component 2 manually it works fine so the component is working..
Read moreUpdating three date fields from current date using Rules
Hi
I think I am more or less there,
I have a Drupal 7 Commerce site that needs to calculate three dates based upon the event of a customer buying a membership subscription product.
The basic logic is that based upon the current date (as this will be triggered when payment is received in full for the transaction) is that three user account fields are updated.
Membership Starts a Date type field
Membership Ends a Date type field
Invoice Date
The logic for the calculation of these dates can be done using php5.3's date() and relative date methods so
Read moreHelp: create a rule that demotes nodes of a view from front page
I have this usecase that i need to implement.
I need to have only 5 nodes promoted to the front page at all times.
I have a view that lists all the nodes that are promoted to the front page WITH AN OFFSET OF 5.
This view gives me the rest of the nodes that i now manually demote from the front page.
i need to create a rule that every time i promote a node to the front page, it automatically removes all other nodes from the front page with an offset of 5.
Read moreShow tag statistics using rules
I want to do the following using Rules.
When new or existing content item is saved and has "positive" or "negative" tag selected and a specific taxonomy vocabulary term selected
Count the total number of content items for the selected vocabulary term with a "positive" or "negative tag"
divided by
total number of entity content items for the selected entity vocabulary term with a "positive" tag
show total as percentage
Put value in read-only custom field of the selected entity vocabulary term selected for this content item.
Read moreRules and user profile fields
Im trying to build a rule that sends an e-mail when a profile field has been changed, so I have created the following rule that makes a data comparison of the fields then sends an e-mail if they have changed. The problem is that it only sends and e-mail if both fields have been changed and not one or the other, I have tried using and OR condition but this just stops the e-mail sending in any circumstance. (I have omitted the details of the e-mail)
Read more