I'd like to setup my site so that nodes of a certain type are automatically unpublished once a given date has passed.
The date in question will be a CCK Date field which is optional (may or may not be entered). If no date is entered, the node is never automatically unpublished.

I asked about this on the Scheduler module's issue queue, but apparently it's not possible with that module.
Are there any modules that'll let me do this?

Comments

equinox’s picture

Use cron to submit a database query to perform this task on a daily basis. Sounds like a fairly straightforward db query.

Anonymous’s picture

I'd prefer something within Drupal (a module) to handle this, not have to use cron, database queries, etc...

paulnem’s picture

scheduled actions or actions perhaps?

http://drupal.org/project/sched_act

Anonymous’s picture

Scheduled Actions is only available for Drupal 4 with a dev version for 5.
It looks a bit old now, and with all the changes Drupal 6 implemented, I doubt this would work well...

Also, it looks like it only allows you to specify when to run the action, it doesn't get it from an existing field...

cog.rusty’s picture

The scheduler module has a Drupal 6 version. It relies on cron.

http://drupal.org/project/scheduler

Anonymous’s picture

I mentioned above that I asked in the Scheduler issue queue and it won't let me do what I want.
http://drupal.org/node/313653

cog.rusty’s picture

Doh! I replied too fast.

I don't think there is any module available to let you schedule your nodes one by one using a field.