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

blackice2999’s picture

Hi 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

Letharion’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

ssoulless’s picture

Issue summary: View changes

for 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.