2006-03-24 02:16:32 +01:00
|
|
|
You can turn any page on this wiki into a weblog by inserting a
|
2006-04-25 08:40:11 +02:00
|
|
|
[[PreProcessorDirective]]. Like this:
|
2006-03-24 02:16:32 +01:00
|
|
|
|
2006-08-02 02:14:31 +02:00
|
|
|
\\[[inline pages="blog/* and !*/Discussion" show="10" rootpage="blog"]]
|
2006-03-24 02:16:32 +01:00
|
|
|
|
2006-08-02 02:14:31 +02:00
|
|
|
Any pages that match the specified [[PageSpec]] (in the example, any
|
2006-03-29 20:19:13 +02:00
|
|
|
[[SubPage]] of "blog") will be part of the blog, and the newest 10
|
2006-03-24 02:16:32 +01:00
|
|
|
of them will appear in the page.
|
2006-03-29 20:19:13 +02:00
|
|
|
|
2006-08-01 22:08:42 +02:00
|
|
|
The optional `rootpage` parameter tells the wiki that new posts to this blog
|
2006-06-21 07:28:52 +02:00
|
|
|
should default to being [[SubPage]]s of "blog", and enables a form at the
|
2006-03-29 20:19:13 +02:00
|
|
|
top of the blog that can be used to add new items.
|
|
|
|
|
2006-08-01 22:08:42 +02:00
|
|
|
There is also an optional `rss` parameter that can control whether an RSS
|
|
|
|
feed is generated. The default is to generate an RSS feed, if the wiki is
|
|
|
|
globally configured to do so, but you can set `rss=no` to disable this.
|
|
|
|
|
2006-03-29 20:19:13 +02:00
|
|
|
If you want your blog to have an archive page listing every post ever made
|
|
|
|
to it, you can accomplish that like this:
|
|
|
|
|
2006-08-02 02:14:31 +02:00
|
|
|
\\[[inline pages="blog/* and !*/Discussion" archive="yes"]]
|
2006-03-29 20:19:13 +02:00
|
|
|
|
|
|
|
You can even create an automatically generated list of all the pages on the
|
|
|
|
wiki, with the most recently added at the top, like this:
|
|
|
|
|
2006-08-02 02:14:31 +02:00
|
|
|
\\[[inline pages="* and !*/Discussion" archive="yes"]]
|
2006-06-02 03:17:26 +02:00
|
|
|
|
|
|
|
If you want to be able to add pages to a given blog feed by tagging them,
|
|
|
|
you can do that too. To tag a page, just make it link to a page or pages
|
2006-08-02 02:14:31 +02:00
|
|
|
that represent its tags. Then use the special link() [[PageSpec]] to match
|
2006-06-02 03:17:26 +02:00
|
|
|
all pages that have a given tag:
|
|
|
|
|
|
|
|
\\[[inline pages="link(life)"]]
|
|
|
|
|
|
|
|
Or include some tags and exclude others:
|
|
|
|
|
2006-08-02 02:14:31 +02:00
|
|
|
\\[[inline pages="link(debian) and !link(social)"]]
|