Search in group Search
How can I make "on publish" be a trigger?
Is there a way I could do this with custom php code or something? I have hunted and hunted and all I can find is people who need help PUBLISHING, not using "on publish" as a trigger.
Basically, I need to have a rule that activates when a node is published. Not whenever a node is published, but specifically at the time it goes from being "unpublished" to "published." I thought the built in "Content is published" condition would do it, but nope, that just makes the action activate every time a published content is edited.
Basically I need:
ON content gets published
Read moreScreencast: How to use Rules and Views Bulk Operations together
Last night I did a screencast on how to use Rules together with Views Bulk Operations. The combination is really useful when you want to do some kind of database query and perform actions on the result. (The screencast was inspired by some previous questions in this group.)
The screencast can be viewed here: http://nodeone.se/blogg/nodeone-talks-drupal-rules-views-bulk-operations
Read moreContext based on terms added by Rules
I am trying to add sidebar blocks according to the date of the event. It should show different ones, when event is in the future and when is in the past.
For adding sidebar blocks I am using Context module. It doesn't support values of CCK date fields as conditions, so I am trying to use Rules to set terms ("past" and "future"), which can be used to define condition in Context.
The problem is, when I try to execute the rule on "Content is going to be viewed" the Context is activated BEFORE the content is loaded (and term applied), so I have to reload page to see the proper result. This of course isn't acceptable. I can't use Rules Scheduler, because I need to use parameters.
Read moreCreating nodes depending on terms added to user
Hello Rules fans :)
I'm giving Rules my first serious try, and hoping someone will be able to provide some guidance.
What I want to do:
Users may add terms to themselves. For every available term, there is a CCK type. The type has a user reference.
When term "X" is added to user Y, I want to create a node of type "X-node", and set the user reference to user Y.
My first stumbling block is this:
When user information is saved, how do I know which terms are new, and thus do not already have a corresponding node created?
Sending messages based on flag information
I got this question in my mailbox, and thought I should write an answer where anyone can see and comment.
Read moreI watched your screencast about VBO and rules. It was awesome and helpful for sure. I have a question though.
Users on my site create blogs and these blogs can be "bookmarked" using flag module.
Is it possible to have the author of a new blog content send a private msg/email to all users who have bookmarked a piece of their blog content previously?If that is too difficult is it possible to at least send the privatemsg/email to all friends of the author?
My network went down…
Looping rules with ordinary rule sets?
Inspired by Rules 2 and some discussions regarding looping through lists and evaluating these lists as a whole I got some ideas of how to use rule sets to make a looping structure fit even the Rules 1 framework.
I guess the post is mainly aimed at the Rules maintainers (mostly fago and klausi), but I'm posting it here for public view. More eyes mean more ideas and – hopefully – better ideas.
Read moreNode reference creation
I know node reference has been covered elsewhere, but I cannot find out how to do this: Any help would be appreciated.
I have a node that contains 2 fields:
field_a contains text equal to a node title (not this node)
field_b is a node reference field (CCK) but is currently empty.
I think the best way to automatically insert a node-reference (without user input) is through Rules (Awesome module I think)
I want to set field_b = the nid of the node refered to in field_a
I don't know what to set field_b = to???? The closest I can get is
Read moreNode reference using another field
Is it possible to use php to reference another node using a field inside this node?
The field contains the title of the other node - not the nid of the other node.
Read moreLogging in with Shibboleth doesn't fire the "User Login" Event?
In my installation the users login with Shibboleth [1], but the rule [2] I've set up to be executed on "User has logged in" event, isn't executed.
On the other hand, when I login as administrator through the normal Drupal way, the rule is executed.
Does this mean that the external login event isn't handled at all?
Is there a way to overcome this?
[1] http://drupal.org/project/shib_auth
[2] http://drupal.org/project/rules


