There are numerous ways to clean up old posts. Node Expire + Rules is one way, however it requires the user to specify an expiration date, another module, and in that sense is neither intuitive nor efficient. Using Rules and Views together via rules + views integration there’s a great way use the data that has already been entered.
For the video folks here’s your 2 minute rundown of what is up:
1) Create the rule set to handle the data. Add a content argument – you’ll be passing the node ID’s over to Rules for the actions to take place
2) Inside the rule set add a rule – no conditions are needed, just add the action to unpublish the nodes
3) The final rule should look similar to the image at right
4) Once you’ve got your rule set up it’s time to create the view that will send information over to the rule. Assuming you have rules + views integration and Views Periodic Execution installed you’ll now be able to execute your views on a cron tab
5) In views you’ll need to set the periodic execution phase, the rule set, and of course set up your filters as per usual and MOST IMPORTANTLY include the NID (so that rules knows which nodes to act on)
6) The Views Periodic Execution mod by Stephen Jones aka darthsteven
7) and of course you need to choose the rule set unto which the little nids may argue and achieve action. Once you pick your rule set the available arguments’ll appear – any fields you have elected to have appear in your view are available to activate the rule.





Did you try Node Scheduler? Might even be easier
nice find! definitely old skool http://drupal.org/project/node_scheduler 1 commit in ’07 = sweet! it’s fun seeing how drupal has evolved from d5->d6->d7 etc… right now we’re mostly a d6 shop getting on board in 2008 or 9 on the side i like d7 for commerce projects, in the library domain it’s d6 for the most part
It’s called Scheduler now: http://drupal.org/project/scheduler
Hi Patrick, doh, gotcha, i’ve used http://drupal.org/project/job_scheduler a fair bit, but haven’t messed with scheduler – does scheduler allow you to use a predefined cck field as the scheduling field or is it separate data entry? We’re trying to keep the data entry to a minimum and have Drupal rules handle the logic as much as possible. thanks for the clarification though – also worth noting that scheduler that you pointed out has a d7 version
I use Scheduler to publish my podcast at http://ModulesUnraveled.com/podcast. I’m running D7 and it’s great!
I would definitely recommend it to someone who doesn’t want to mess too much with (or is afraid of) views and rules.
Maybe i like Node Scheduler. thank for your detail guide
different tool for a different use case — node scheduler is is fine for what it does though
I like Node Scheduler, using it for a year or so and I’m very satisfied. Thanks for the guide!