I've written a module for drupal, to allow sites to display a number of blocks with latest stories by taxonomy, and automatic content expiration. Enjoy.
Whilst working on the helpdesk module, I found that, for another site, I had a need for blocks containing teasers of node matching terms in a taxonomy vocabulary, as links to the nodes themselves, with automatic content expiration based on publishing date.
After a few days as independent custom blocks, I found it more valuable to have these blocks integrated as just deltas in a single module, to reduce code bloat, and wrote this module, which I called taxonews (taxonomy-based news).
Salient features are:
- Very small, low code volume, less than 200 LOC, works with basic Drupal 4.6.x
- Does not modify the default 4.6.x database (unlike taxonomy block), which serves a mostly similar purpose.
- Just two settings:
- one for the vocabulary used as the basis for node selection
- the other one for node lifetime
The module defines one block for each term in the selected vocabulary.
They can then be configured individually from the standard
The code for this module is Open Source, licensed under the GPL version 2. As always, any relevant documentation is licensed under the Creative Commons Attribution-ShareAlike 2.0 France License.
It's kind of funny to think that helpdesk was supposed to be my first effort to create something on top of Drupal, as something very simple I normally write in Paradox in a couple of hours, or in Delphi or raw PHP in a couple of days, and it's not yet done after 12 weeks because learning how to code it on top of the Drupal framework mean much more work than I had envisioned initially, while in the meantime, I now code such "more natively drupalish" things as this module in a few hours while essentially working on something else.
I can't but wonder whether an ulterior release of the helpdesk module will see me restructuring it more elegantly around the drupal APIs...