Hey everyone,
I'm using the jquery_countdown formatter with a date field and its working great. But what I'm really trying to do is use the module's rules integration to unpublish a node (a standard rules action) when the countdown = 0.
Any ideas how I would accomplish this?
I see the "When countdown = 0" rules event, but I don't see a way to load the node id of the node whose countdown just went to 0 (and thus be able to unpublish just that node).
Is there a current way to do this or does the rules integration need to be expanded so that when countdown = 0, the node id is passed along to rules?
Thanks,
Ben
Comments
Comment #1
blackice2999 commentedHi BenK,
i think this is not task from jquery_countdown module. You use the rules module and you use the date field ... why not setup a rule for unpublishing if date is reached ? - I found this: http://groups.drupal.org/node/67008 it´s for D6 but the way is the same. This sounds also good: http://drupal.org/node/520012
regards
Dennis
Comment #2
Letharion commentedComment #4
ssoulless commentedfor that prupose I used the module https://www.drupal.org/project/field_countdown and followed the instructions in the links that @blackice2999
With that method you not only can unpublish or publish content you can perform any kind of action you want with rules.