]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/aggregate.mdwn
clarify
[ikiwiki.git] / doc / plugins / aggregate.mdwn
1 This plugin allows content from other blogs to be aggregated into the wiki.
2 Aggregate a blog as follows:
3
4         \[[aggregate name="example blog" feedurl="http://example.com/index.rss" url="http://example.com/" updateinterval="15"]
5
6 That example aggregates posts from the expecified RSS feed, updating no
7 more frequently than once every 15 minutes, and puts a page per post under
8 the example/ directory in the wiki.
9
10 You can then use ikiwiki's [[blog]] support to create a blog of one or more
11 aggregated feeds.
12
13 ## setup
14
15 Make sure that you have the [[html]] plugin enabled, as the created pages are
16 in html format. The [[meta]] and [[tag]] plugins are also recommended. The
17 [[htmltidy]] plugin is suggested, since feeds can easily contain html
18 problems, some of which tidy can fix.
19
20 You will need to run ikiwiki periodically from a cron job, passing it the
21 --aggregate parameter, to make it check for new posts. Here's an example
22 crontab entry:
23
24         */15 * * * * ikiwiki --setup my.wiki --aggregate --refresh
25
26 ## usage
27
28 Here are descriptions of all the supported parameters to the `aggregate`
29 directive:
30
31 * `name` - A name for the feed. Each feed must have a unique name.
32   Required.
33 * `url` - The url to the web page for the blog that's being aggregated.
34   Required.
35 * `dir` - The directory in the wiki where pages should be saved. Optional,
36   if not specified, the directory is based on the name of the feed.
37 * `feedurl` - The url to the feed. Optional, if it's not specified ikiwiki
38   will look for feeds on the `url`. RSS and atom feeds are supported.
39 * `updateinterval` - How often to check for new posts, in minutes. Default
40   is 15 minutes.
41 * `expireage` - Expire old items from this blog if they are older than
42   a specified number of days. Default is to never expire on age.
43 * `expirecount` - Expire old items from this blog if there are more than
44   the specified number total. Oldest items will be expired first. Default
45   is to never expire on count.
46 * `tag` - A tag to tag each post from the blog with. A good tag to use is
47   the name of the blog. Can be repeated multiple times. The [[tag]] plugin
48   must be enabled for this to work.
49
50 Note that even if you are using subversion or another revision control
51 system, pages created by aggregation will *not* be checked into revision
52 control.
53
54 This plugin is not enabled by default.
55
56 [[tag type/useful]]