Search in group Search
Saving node, get saved title
I have a trigger rule executing when a new node is saved.
I would like to take the node's title, modify it with PHP and save it into a CCK url field.
I know how to set up the correct action, but I cannot seem to be able to get the node's title into the PHP section.
<?php
return array(
0 => array('url' => $node->title),
);
?>It's working fine with:
<?php
return array(
0 => array('url' => 'test url'),
);
?>Which means I'm having difficulty getting the new node's title.
Read moreIntegrating Views into Rules
Hello everyone,
I'm building a project/task management system on Drupal for my company.
I need to integrate Views into Rules. The general idea is the following:
I want to trigger a rule on cron and once a week send an "overview" to each member of a project showing their tasks, by email.
Rather than writing a gnarly PHP SQL kludge, I'd rather just work on some basic views integration. The basic idea is to create an rules action in the views module that allows me to render a specific view (perhaps passing arguments) and store the output.
Here's the integration plan:
Read moreRules Monkey: Update #2
This is the second update of the Rules Monkey Summer of Code project. I'm sorry for the relatively long pause between this post and the previous update (university kept my quite busy in June, but now I'm full-time available).
The progress that has been made so far:
- Work on the Rules Scheduler issue (http://drupal.org/node/455560)
- Successfully explored Views, DB-Schema and Rules hooks
- Scheduled tasks can now be viewed, a Rules action is available to cancel specific scheduled tasks
Rules with content_profile
I'm setting up a multirole website using rules, roles and content_profile.
To complicate matters the user roles are referencing a group node.
So far I've set up rules to trigger on creation of group node, bringing up
the content profile registration with autopopulation of node_reference.
The rules so far do the following:
- Upon creation of group node, redirect to content profile registration
page, passing group nid to the url parameter. Then send email to admin
group to notify of new group node needing approval.
Document Distribution with a Paper Trail
Hi everyone,
I'm still pretty new to Drupal, so please forgive me if I ask any really dumb questions...
What I'd like to do is serve files to registered users. These files will have multiple revisions, and I need to record a paper trail of when a user downloads a particular revision of a file. But I don't know how best to do this!
I'm thinking of using the following modules:
- FileField et. al. to handle the files (uploads/downloads/metadata/etc..)
- Revision Moderation to handle the file versions
- Content Access to handle permissions
Compare node titles and do action?
Is there a way to unpublish a node if a new node is created with the same title? I'm feeling a little daft trying to figure it out from reading here, the issues queue, and the documentation. (Let me know if I need to move this to an issue, BTW.)
Read moreRules Monkey: Update #3
This is the third update of the Rules Monkey Summer of Code project. The enhancements for the Rules Scheduler module are now finished and have been reviewed many times by my mentor and me. (see the issue for patches and details). They will be comitted to the official Rules CVS development branch in the next days.
Read moresql query in/as condition
I am looking for a way to use sql query in condition of rule - if sql query returns something - proceed with rule, if it returns nothing - skip rule. Can anyone suggest way to go in this case? Thanks.
Read moreRules Monkey: Update #4
This is the fourth update of the Rules Monkey Summer of Code project. A lot of progress has been made last week:
- Rules scheduler changes were committed to the official Rules CVS repository, yay!
- I wrote 3 tutorials to help people understand and use Rules scheduler
- I implemented an action to delete nodes, which was also committed
Send email message - change input of HTML to text?
Trying to set up a rule to send an email message when a node is created with [node:node-body] in the body of the email. The body of the node is in filtered HTML and the tags appear in the generated email. Is there a way to filter the email being sent from the rule to strip out the HTML tags? The other alternative would be for the message to honor the HTML, but the other modules that seem to be going in that direction are still in beta.
Read more


