1 The `aggregate` directive is supplied by the [[!iki plugins/aggregate]] plugin.
3 This plugin requires extra setup, specifically, a cron job.
4 See the plugin documentation for details.
6 This directive allows content from other feeds to be aggregated into the wiki.
7 Aggregate a feed as follows:
9 \[[!aggregate name="example blog" dir="example"
10 feedurl="http://example.com/index.rss"
11 url="http://example.com/" updateinterval="15"]]
13 That example aggregates posts from the specified RSS feed, updating no
14 more frequently than once every 15 minutes (though possibly less
15 frequently, if the cron job runs less frequently than that), and puts a
16 page per post under the example/ directory in the wiki.
18 You can then use ikiwiki's [[ikiwiki/blog]] support to create a blog of one or
19 more aggregated feeds. For example:
21 \[[!inline pages="internal(example/*)"]]
25 Here are descriptions of all the supported parameters to the `aggregate`
28 * `name` - A name for the feed. Each feed must have a unique name.
30 * `url` - The url to the web page for the feed that's being aggregated.
32 * `dir` - The directory in the wiki where pages should be saved. Optional,
33 if not specified, the directory is based on the name of the feed.
34 * `feedurl` - The url to the feed. Optional, if it's not specified ikiwiki
35 will look for feeds on the `url`. RSS and atom feeds are supported.
36 * `updateinterval` - How often to check for new posts, in minutes. Default
38 * `expireage` - Expire old items from this feed if they are older than
39 a specified number of days. Default is to never expire on age.
40 * `expirecount` - Expire old items from this feed if there are more than
41 the specified number total. Oldest items will be expired first. Default
42 is to never expire on count.
43 * `tag` - A tag to tag each post from the feed with. A good tag to use is
44 the name of the feed. Can be repeated multiple times. The [[tag]] plugin
45 must be enabled for this to work.
46 * `template` - Template to use for creating the aggregated pages. Defaults to
49 Note that even if you are using subversion or another revision control
50 system, pages created by aggregation will *not* be checked into revision