Search in group Search
Walk-through example: creating rule for Form Validation Based on a CCK Date field
I had to play with Rules for forms today so I thought I'd write up the details. Here's an example of a rules setup to handle checking a cck date field when a node is being created.
I have a content type called Offer which has a cck field called offer_date (identified as field_offer_date).
The required behavior is that if the "to" portion of the offer date is in the past - the form validation should fail and an error should be shown.
How to redirect a menu link to last published full node
Hi all,
Is it possible to achieve the following result with rules?
I have a primary menu link "articles" and I want that it would point to last published full node of a particular content type (articles).
I know this can be simple obtained with Views sorting nodes for data, but I need that that user will be redirect to a NODE page, not to a views page.
Thank you very much for your help!
MXT
Read moreCreate a term based on a node title and vocabularies/terms selected.
Say I have two vocabularies:
Colors
-Blue
-Red
-Green
Fruit
-Apple
-Banana
-Jerrac
I've added them to a content type called Bob as term reference fields in Drupal 7. One field for each vocabulary.
When a user creates a Bob page called Jump, the user selects the Blue and Apple terms.
I want two new terms created based on the title Jump. Specifically I want Jump to be added as a child of Blue, and added again as a child of Apple.
How can I do that?
Read moreHow to send a one-time login link to a user?
site admin could change a user password for those forgot his/her password.
I would like to setup a rules will trigger to send a one-time login link when site admin change a user password.
I cannot find any clue to put a one-time login link in a email message body.
Read moreProblems with scheduling
I have been trying for a couple of days to set up a schedule action, but no matter what I do, I can't seem to make it work.
I have set up the rule set and associated rules as per the tutorial. What I am trying to do is to run an action once a day at 12:01 a.m. But I can't get an action to schedule no matter how I set it up.
I also have a question about setting up the Arguments fieldset when you create a new rule set. The tutorial tells you what to put in here, but I don't understand the logic behind those terms.
Any direction you can offer will be greatly appreciated.
Read moreusing a checkbox in a condition
Helo people,
i'm having problems doing something that should be so simple I will probably end up embarrassed with the solution, but anyway here it goes.
I have a content type with several CCK fields, one of which is a checkbox. I want to create a rule using the value of that checkbox to determine wether some other fields should be hidden.
Read moreCreating a Rules-driven admin dashboard
Hello,
I am somewhat new to Rules and am amazed by what it can do. I've got a situation where I believe Rules is the best tool, (I have also considered http://drupal.org/project/computed_field and http://drupal.org/project/views_calc). Any insight you have would be greatly appreciated.
Read moreCreate Forum?
Hi there,
This is a bit of a long shot but I'm hoping to get some advice on forum generation through rules. My site is primarily organized through an extensive taxonomy. What I'm hoping to achieve with rules is this:
Taxonomy 1 (fruit)
New term is saved (apple)
Create a forum for apple with a standard set of containers
-History
-Recipes
-Msc
Is this possible with rules? I was playing around with loading the forum vocab and adding Apple as a new forum that way, but so far no luck. Any tips or advice anyone could share would be awesome.
Thanks!
Amy
Trying to create rule to add daily fees after period
I am trying to add a daily incremented storage fee for special order items not shipped out after 7 days from our Ubercart store. Any suggestions on how to do this using rules and rules scheduler? Thanks
Read moreLooking for a way to append a taxonomy term with a hierarchy
I'm trying to use a Freetag to append to an existing taxonomy hierarchy.
I can get it to add the term but not in the right place. It adds it as a distinctly new parent item.
Taxonomy1 -->cck content taxonomy - has hierarchy
freetag --> cck content taxonomy - single entry
so the user pick their way through taxonomy1 and then adds a free-tag. Just trying to get it to add that tag to the end of taxonomy1 in the right place. So eventually it will be a complete taxonomy.
Tried using this token set but it just created a new item and didn't append it.
Read more
