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