]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/inline.mdwn
use feedpages to limit all feeds to new items, in preparation for switching
[ikiwiki.git] / doc / plugins / inline.mdwn
1 [[template id=plugin name=inline core=1 author="[[Joey]]"]]
2
3 This is a [[PreProcessorDirective]] that allows including one wiki page
4 inside another. For example:
5
6         \[[inline pages="blog/*"]]
7
8 The most common use of inlining is generating blogs and RSS or Atom feeds.
9 See [[blog]] for details.
10
11 ## usage
12
13 Here are descriptions of all the supported parameters to the `inline`
14 directive:
15
16 * `pages` - A [[PageSpec]] of the pages to inline.
17 * `show` - Specify the maximum number of matching pages to inline.
18   Default is 10, unless archiving, when the default is to show all.
19   Set to 0 to show all matching pages.
20 * `skip` - Specify a number of pages to skip displaying. Can be useful
21   to produce a feed that only shows archived pages.
22 * `rss` - controls generation of an rss feed. On by default if the wiki is
23   configured to use rss feeds, set to "no" to disable.
24 * `atom` - controls generation of an atom feed. On by default if the wiki is
25   configured to use atom feeds, set to "no" to disable.
26 * `feeds` - controls generation of all types of feeds. Set to "no" to
27   disable generating any feeds.
28 * `postform` - Set to "yes" to enables a form to post new pages to a [[blog]].
29 * `postformtext` - Set to specify text that is displayed in a postform.
30 * `rootpage` - Also enables a form to post new pages to a [[blog]], and
31   allows specifying of a page that is used as the parent page for new pages.
32 * `archive` - If set to "yes", only list page titles and some metadata, not
33   full controls.
34 * `quick` - Build archives in quick mode, without reading page contents for
35   metadata. By default, this also turns off generation of any feeds.
36 * `template` - Specifies the template to fill out to display each inlined
37   page. By default the `inlinepage` [[template|wikitemplates]] is used, while
38   the `archivepage` template is used for archives. Set this parameter to
39   use some other, custom template, such as the `titlepage` template that
40   only shows post titles. Note that you should still set `archive=yes` if
41   your custom template does not include the page content.
42 * `raw` - Rather than the default behavior of creating a [[blog]],
43   if raw is set to "yes", the page will be included raw, without additional
44   markup around it, as if it were a literal part of the source of the 
45   inlining page.
46 * `description` - Sets the description of the rss feed if one is generated.
47   Defaults to the name of the wiki.
48 * `actions` - If set to "yes" add links to the bottom of the inlined pages 
49   for editing and discussion (if they would be shown at the top of the page
50   itself).
51 * `sort` - Controls how inlined pages are sorted. The default, "age" is to
52   sort newest created pages first. Setting it to "title" will sort pages by
53   title, and "mtime" sorts most recently modified pages first.
54 * `reverse` - If set to "yes", causes the sort order to be reversed.
55 * `feedpages` - A [[PageSpec]] of inlined pages to include in the rss/atom
56   feeds. The default is the same as the `pages` value above, and only pages
57   matches by that value are included, but some of those can be excluded by
58   specifying a tighter [[PageSpec]] here.
59 * `feedshow` - Specify the maximum number of matching pages to include in
60   the rss/atom feeds. The default is the same as the `show` value above,
61   and it cannot be larger than that value, but can be set to a smaller
62   value to avoid producing excessively large feed files.