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