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