The news feed with expiration capabilities has finally arrived from the desk of Devin Hedge. Feel free to test this out with Drupal 4.5.x or Civicspace .8.0.3 (or anything else if you're feeling lucky). It has been tested with both. Basically this newsfeed module (mod) allows you to expire news from your databanks. If you pull feeds, you can limit your TTL (time to live) on the feed to a number of hours. So, if you want to expire all content more than 90 days old, you simply set your TTL to 2160 (multiply the hours by the days).
It's simple. This mod only adds a single field to the "edit" or "new feed" pages in aggregator.
Installation is simple. After installing the old aggregator (assuming you have it from the core Drupal or CivicSpace installation), just run the sql script dbh-aggregator-updates.sql (now called dbh-aggregator-updates.sql.txt - rename it to dbh-aggregator-updates.sql) and move the file aggregator.module.x to modules/aggregator.module.
To run the script, you'll need to run it at the command line like so:
mysql -u yourusername -p databasename < dbh-aggregator-updates.sql
It is important that the web daemon be able to read the file aggregator.module. So, in unices, simply permission it so (chmod 644 is safe).
There's nothing else to it.
Note: Please make sure you modify the sql script if you use prefixes with your Drupal or CivicSpace site.
| Attachment | Size |
|---|---|
| aggregator.module.x | 52.49 KB |
| dbh-aggregator-updates.sql.txt | 171 bytes |