* Add a run_hooks function for the common task of running all hooks of a
[ikiwiki] / doc / todo / aggregation.mdwn
1 Here's a scary idea.. A plugin that can aggregate feeds from other
2 locations. Presumably there would need to be a cron job to build the wiki
3 periodically, and each time it's built any new items would be turned into
4 pages etc. There might also need to be a way to expire old items, unless
5 you wanted to keep them forever.
6
7 This would allow ikiwiki to work as a kind of a planet, or at least a
8 poor-man's news aggregator.
9
10 * XML::Feed has a very nice interface, may require valid feeds though.
11 * How to store GUIDs? Maybe as meta tags on pages, although that would need
12   caching of such metadata somewhere.
13 * How to configure which feeds to pull, how often, and where to put the
14   pulled entries? One way would be command line/config file, but I think
15   better would be to use preprocessor directives in a wiki page, probably
16   the same page that inlines all the pages together.
17 * Where to store when a feed was last pulled?
18
19 So I need:
20
21 * A way to store info from the preprocessor directives about what pages
22   to pull and expiry.
23 * A way to store info on last pull time, guids, etc.
24 * Switch for a mode that a) pulls b) expires old c) rebuilds wiki (for cron)