1 [[if test="enabled(inline)"
2 then="This wiki has the inline plugin **enabled**."
3 else="This wiki has the inline plugin **disabled**."]]
5 [[if test="enabled(inline)"
7 else="If this wiki had the inline plugin enabled, you could"]]
8 turn any page on this wiki into a weblog by using the `inline`
9 [[PreProcessorDirective]]. For example:
11 \[[inline pages="blog/* and !*/Discussion" show="10" rootpage="blog"]]
13 Any pages that match the specified [[PageSpec]] (in the example, any
14 [[SubPage]] of "blog") will be part of the blog, and the newest 10
15 of them will appear in the page. Note that if files that are not pages
16 match the [[PageSpec]], they will be included in the feed using RSS
17 enclosures, which is useful for podcasting.
19 The optional `rootpage` parameter tells the wiki that new posts to this blog
20 should default to being [[SubPage]]s of "blog", and enables a form at the
21 top of the blog that can be used to add new items.
23 If you want your blog to have an archive page listing every post ever made
24 to it, you can accomplish that like this:
26 \[[inline pages="blog/* and !*/Discussion" archive="yes"]]
28 You can even create an automatically generated list of all the pages on the
29 wiki, with the most recently added at the top, like this:
31 \[[inline pages="* and !*/Discussion" archive="yes"]]
33 If you want to be able to add pages to a given blog feed by tagging them,
34 you can do that too. To tag a page, just make it link to a page or pages
35 that represent its tags. Then use the special `link()` [[PageSpec]] to match
36 all pages that have a given tag:
38 \[[inline pages="link(life)"]]
40 Or include some tags and exclude others:
42 \[[inline pages="link(debian) and !link(social)"]]