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