Search in group Search
Rule to generate sequential number and set it as part of the node title
I'd like to have an automated procedure to generate a sequential number that would be set as part of the node title. This number would have a format like TEXT_2011_###### and it woud start with TEXT_YEAR_000001. As an example: INCIDENT_2011_000001.
And finally this string would be the node title.
Is this possible to achieve with rules and without programming?
Read moreRules 2.x tutorials and documentation
Hi all. I am working on a D7 site and trying integrate the Rules 2.x module to create an expiration date for a node. I have tried working through the Rules 1.x tutorials and documentation and am really struggling. Example, R1.x tutorial explains how to create a trigger but R2.x has nothing called trigger.
Does anyone know of any tutorials or documentation? I am quite frustrated at this point!
Thank you,
Landon
Read moreCreate user
I have a custom node type that contains a e-mail field.
Can I use Rules to check if the e-mail excists from before (when the anonymious user adds content to the node), if not then create a new user in Drupal.
Read moreHow can I change the language and personalize the mail when sending mail to each user of a particular role?
The rule to send a mail to every user of a particular role is very cool.
However, I am on a multilingual site, and the language of the mail should change depending on the language preference of that user.
I thought of having one dedicated role per language and send a single language mail for each of these roles. I think that would work rather nicely, apart from the ballast of the need of multiple roles for this purpose. Each rule would simply have its own, single language, untranslated mail contents.
Read moreRules and node revisions
In the drupal 6 rules code, in
rules/modules/node.rules.inc
there is this code:
class rules_data_type_node extends rules_data_type {
function save() {
$node = &$this->get();
// Bug fix: Make sure we don't create another revision when we react on the
// creation of an revision.
unset($node->revision);
node_save($node);
...Trigger on update node, but only when something has actually changed
I have a rule to send mail to subscribers, when a node is published. However, that rule gets triggered whenever the node is updated, and published, but that does not necessarily mean that the node is newly published.
So... Can I add the condition "when the node is published but only if it was not published before"?
Also, is there a way to find out that certain content fields have a new value?
BTW I'm using Drupal 7 (and thus, Rules 2).
Read moreHow to compare Field with value then action?
Hi,
I'm quite new to D7 and I'm building a groupon-like website using Commerce.
Just like groupon, each product need to reach a minimum number of purchase to unlock the product. So what I want to do is use Rules to compare a Field name field_min_purchase to no_of_purchase, if the no_of_purchase is greater, I want to put a label "The Deal Is ON" on the teaser or content of the product display. I have playing around with Rules2 for few days and doesn't have any luck, hope someone can give me some direction.
Thanks.
Read moreExecute a ruleset from within PHP
Is it possible to execute a ruleset from within PHP?
I know I can call PHP code from within a rule action, but what I want is the reverse: call some function in PHP which in turn triggers a bunch of rules, for example to send a mail...
I'm using D7, so integration with other modules, like Flag, is, at best, dubious...
Read moreLooping through all nodes of a content type and copying one textfield of the node into the body field
Hi!
Is it possible to loop through nodes with the Rules 2 for D7? This documentation says only something about looping through a multi value field. http://drupal.org/node/943962
I wwould like to go through all page content nodes and if the body field is empty the text from another textfield in the node should be copied. I tried to create an action set and selected "List of node items" in the variable settings. I see it in the loop data selector list but how can I populate this list?
Is there some further documentation?
Thanks for your help.
Regards
Marcus
How to compare node location with a geographic region?
Hello everybody
I'm quite new to rules and drupal (I'm starting with D7), and I'm having no luck so far with my specific problem, which is:
Read more



