Search in group Search
Prevent user saving content type if a cck field has a value identical to previous
Hi
I have spent many hours trying to achieve this without success, so before I invest more I was hoping someone can tell me if its possible !
I have a content type that users fill in to make a selection (it's a cck drop down field).
I want a rule that stops User A from saving the node if user A has already created a node with the same value previously.
I would really appreciate any guidance no matter how brief to put me on the right track.
Cheers.
Read moreadd child to book rule
I am setting up a site where the user will create a book from a link located in a side menu block titled " add book". Clicking on the link will open a content type that has a form I want the user to fill out. I am using fields provided in Drupal 7 to create the form. When they click on save the new book gets created using the module book made simple and it is added to a book block visible in the side menu. What I need to do is also create child pages under this new book.
Stopping Rule Processing
I am wondering about a Rules action that stops rule processing.
I created two rules, both of which trigger on "After updating existing content." Both operate on a certain content type.
The first sends an email whenever any field of the content type has been modified.
The second checks to see if a field is empty and if it is not, uses the Set a data value action to set the value of another field to the current date and time.
The problem is that both rules would run and, presumably because Rule 2 updated content, both rules would run a second time, resulting in two emails.
Read moreGranting individual user access to a node using rules
Firstly, apologies if I'm being a moron and putting this in the wrong place. I'm a newbie and to me learning Drupal feels like digging a big hole and right now I've stuck an impenetrable steel floor with my project!
I'm trying to build a website for a new kind of language school where adult students can select classes they want to attend.
Right now I've made some rules so that:
1.) The head-teacher schedules a class by creating a node (a content type called 'Create Class').
2.) Another node is automatically created (a content type called 'Class Results')
PHP Evaluation inside Rules
I'm working the implementation of a user notification system. The result should be that after setting a flag indicating a desired notification (e.g., an email or SMS is sent when a star is given, a forum is updated, etc), that notification is initiated.
To accomplish that, I'm proposing a field set in the user profile.
The event causes a trigger that Rules detects.
An action occurs contingent on the flag in the profile (and perhaps other contingencies).
Problem:
Read moreRules Action: Set a data value - for a date field
Hi there,
I am attempting to create a rule that automatically creates a group event node when a group post node is created by the users. Once things are said and done, I'd like to use that group event node in a calendar view.
My Event is................. After saving new content
My Condition is............. Content is of type - Parameter: Content: [node], Content types: Post
My Actions are..............
-
Fetch entity by id
Parameter: Entity type: Node, Identifier: [node:nid], Revision identifier: [node:vid]
Provides variables: Learning Link (node) -
Fetch entity by id
Rules Action: Set a data value - for a date field
Hi there,
I am attempting to create a rule that automatically creates a group event node when a group post node is created by the users. Once things are said and done, I'd like to use that group event node in a calendar view.
My Event is................. After saving new content
My Condition is............. Content is of type - Parameter: Content: [node], Content types: Post
My Actions are..............
-
Fetch entity by id
Parameter: Entity type: Node, Identifier: [node:nid], Revision identifier: [node:vid]
Provides variables: Learning Link (node) -
Fetch entity by id
Rules Documentation
Judging from historical questions and comments regarding "Rules", that never are answered, it appears that documentation for this module is pretty thin. Unless the trigger and action falls into a pretty narrow spectrum, Rules is pretty limited.
Read moreIntroducing: Rules Bonus Pack
A few days ago I started a new project on drupal.org: Rules Bonus Pack!
As has previously been discussed, it is a set of modules with 'sandbox' functionality for Rules, that can be used, tested, improved – and also serve as a greenhouse for some features to go into the main Rules project.
I have already updated the project several times, and I expect to add more things every now and then. It contains a lot of things I have been wanting to do with Rules, and is now made much easier. Some examples:
Read morequestion about rules api and how to "attach" or "listen" to an event...
if a module does something like:
rules_invoke_event('some_event', $some_args)
this means it's "triggering" an action to all modules which have "attached" or are "listening" to this "some_event" event.
how do I "listen" to that event to fire off my own function in my module? havent seen anything on the documentation that
explains that.


