Posted by Quaizerman on January 11, 2012 at 5:29pm
Hi, folks.
I looking for a solution for this problem:
If five (or more) contents were created with a specific tag, I must do something (send an email, for example).
** Does RULES can control this for me?
I know RULES can control one content, but only if we reached five (or more) the automatic mechanism must send email. And then, no more.
If RULES can, so I will watch aaaaall screencasts produced generously by NodeOne team.
Thanks
Regards from Brazil,
Killer BR

Comments
Not sure if you're on Drupal
Not sure if you're on Drupal 6 or 7, but for Drupal 6, depending on whether this needs to be a generic solution for a number of tags or just one specific term, you could consider using the Flag module, which does have Rules support for doing something once a certain number of nodes have been flagged x times.
Another option would be to use Term Node Count, http://drupal.org/project/term_node_count, and create a Rule that fires when a new node is saved and checked the value of the term count.
As mentioned in the Term Node Count, there is a function taxonomy_term_count_nodes() that could be used with Rules and the custom php code condition in a similar manner to above.
That's all I could think of in 10 minutes. Hope this helps!
I'm newbie
First of all, sorry for my mistakes in english (I'll use Google better).
And second and more important, Eflage, thanks a lot for you 10 minutes!!
:-)
We are building a Service Desk tool using Drupal.
I am responsible for routine which send alerts. Things like:
A) If ten incidents were opened for VIRUS, the manager must to be alerted.
B) If we are at end of month and somebody of HR opened a incident, the manager must be...
C) And so on...
But we want to create a dynamic list of possibilities.
I think the way is RULES.
The mechanism event-condition-action is what we need.
But the problem is to build the conditions.
And allow the manager create his own conditions...
I will study more about FLAGS. And RULES.
If you come to south Brazil, the barbecue is guaranteed!!
:-)
Roberto
You got a lot of watching to do ;-)
If you're using Drupal 7, Rules can access the "node count" property of a taxonomy term. What you want to do is not trivial, but way doable. I would suggest the following:
(This approach assumes that you know on beforehand which tags you want to check against. If the list of terms to check against is changing, some other clever approaches can be used.)
Good luck!
//Johan Falk
**
Check out NodeOne's Drupal Learning Library! 250+ screencasts and exercises, for Drupal introduction, advanced configuration, and coding. Creative Commons license!
Nice people
Maybe I'll deliver the product with a set of rules where the user can only modify the parameters, but not the rules themselves.
In the second release, knowing more RULES, we can offer even more.
Thanks a lot.
I'm in!
Roberto
Yeah, Drupal 7 ;-)
Itangalo: In the rule set,
Itangalo:
In the rule set, add a first rule that loads all the tags you want to checkHi, Itangalo.
Can you show me the light to do it?
Regards,
Cohen
Here is a screencast about
Here is a screencast about Rules components in general: http://dev.nodeone.se/en/components
In short:
* Create a new rule set.
* Add a rule in it.
* Use the "fetch an entity by ID" action, select that you want to load a taxonomy term, and specify it's term ID. (The term ID can be found in the URL when viewing the term, or when editing it.)
* Create more conditions and actions in other rules, in the same rule set.
Good luck!
//Johan Falk