rules

Events happening in the community are now at Drupal community events on www.drupal.org.
letapjar's picture

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.

Read more
imjohnbon's picture

Can't assign multiple vocabularies to group

Hey everyone,

(I also posted this on the Rules Issues page, but I figured I might actually get more help here.)

So basically, I'm using rules in combination with Organic Groups and OG_Vocab. What I want it to do is assign 3 vocabularies to a new group when it is created. I set up a rule for this like this:

IF
Content is new
AND
Content is a group

DO
Add new vocabulary
Assign vocabulary to group

Read more
gomanual's picture

Rules based on multivalue cck fields

My goal is to give users the option of sending out notifications to other users of specified roles when they create a certain type of node. My current (not working) approach was to create a CCK text field configured to show check boxes (there are four options) on the node creation page, then use rules to catch the check boxes and send emails.

The CCK text field is called 'field_notify', with allowed values of 'group 1', 'group 2', 'group 3', and 'group 4'.

Rule set up:
ON After Saving New Content
IF Created content is Member Post

Read more
itangalo's picture

Project proposal: Rules Bonus Pack

As most people in this group probably knows already, I'm quite keen on the Rules module.
I usually only configure Drupal, but lately I've started to try some coding as well. My main motivation for this is to be able to write Rules actions (and hopefully events and contitions in due time).

Read more
Anonymous's picture

Rules to Automate Bookings

I am trying to set up a Rule and Rules Sets for the work-flow of an anonymous user making a booking.

The modules being used are: Bookings API & Event bookings.

What I think it ought to look like is:

RULE

Event is “A new booking has been added”

Then DO Rule set 1

        Arguments: Booking API + Content

        Revoke content permissions by role (protect each new booking page from future public access ie anon)
        Redirect to page (Thanks for booking)
        Send email to an arbitrary address (applicant's booking details)

    Rule set 2 – Scheduled in 7 days
Read more
irakli's picture

OpenPublish 2.3 RC1 Is Available for Download

OpenPublish 2.3RC1 is now available for download: http://openpublishapp.com/download

This release includes:

<

ul>

  • A new editorial workflow system
  • Rules integration
  • Facebook "Like" integration
  • Improved digital assets managements
  • DocumentCloud integration
  • Integration with an in-stream advertising network
  • Editors’ Choice
  • Improved and streamlined RSS export
  • Read more
    dogboy72's picture

    Complex rules that can create and edit related nodes

    I am creating - actually rebuilding from Coldfusion - an application that - among many other things - handles production work flow. Here is one scenario that is indicative of many more I will have to create:

    User enters order for a product(in my case, a dress). Some of the details of this order that are captured are:

    Read more
    jspapas's picture

    Logging 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

    Read more
    littlealy's picture

    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 more
    drecute's picture

    Making CCK field values available as a condition to User is created event

    Hello, I have 3 content profiles setup. One is for consumer registration, the second is a marketer registration and the third is a generic profile node type for custom fields. I setup a content profile role reference field to be available on user registration. I will like to perform some rules whereby when the user submits the registration form, he is redirected to another content profile form based on his field selection. So, I created a rule to be triggered when a user is created. I added a condition of if user has anonymous or authenticated role.

    Read more
    Subscribe with RSS Syndicate content