]> sipb.mit.edu Git - ikiwiki.git/blob - doc/plugins/comments.mdwn
Coding style change: Remove explcit vim folding markers.
[ikiwiki.git] / doc / plugins / comments.mdwn
1 [[!template id=plugin name=comments author="[[Simon_McVittie|smcv]]"]]
2 [[!tag type/useful]]
3
4 This plugin adds "blog-style" comments. Unlike the wiki-style freeform 
5 Discussion pages, these comments are posted by a simple form, cannot later
6 be edited, and rss/atom feeds are provided of each page's comments.
7
8 When using this plugin, you should also enable [[htmlscrubber]] and either
9 [[htmltidy]] or [[htmlbalance]]. Directives are filtered out by default, to
10 avoid commenters slowing down the wiki by causing time-consuming
11 processing. As long as the recommended plugins are enabled, comment
12 authorship should hopefully be unforgeable by CGI users.
13
14 The intention is that on a non-wiki site (like a blog) you can lock all
15 pages for admin-only access, then allow otherwise unprivileged (or perhaps
16 even anonymous) users to comment on posts. See the documentation of the
17 [[lockedit]] and [[anonok]] pages for details on locking down a wiki so
18 users can only post comments.
19
20 Individual comments are stored as internal-use pages named something like
21 `page/comment_1`, `page/comment_2`, etc. These pages internally use a
22 `\[[!_comment]]` [[ikiwiki/directive]].
23
24 There are some global options for the setup file:
25
26 * `comments_shown_pagespec`: pages where comments will be displayed inline,
27   e.g. `blog/*` or `!*/discussion`.
28 * `comments_open_pagespec`: pages where new comments can be posted, e.g.
29   `blog/* and created_after(close_old_comments)` or `!*/discussion`
30 * `comments_pagename`: if this is e.g. `comment_` (the default), then
31   comment pages will be named something like `page/comment_12`
32 * `comments_allowdirectives`: if true (default false), comments may
33   contain IkiWiki [[directives|ikiwiki/directive]]
34 * `comments_commit`: if true (default true), comments will be committed to
35   the version control system
36 * `comments_allowauthor`: if true (default false), anonymous commenters may
37   specify a name for themselves, and the \[[!meta author]] and
38   \[[!meta authorurl]] directives will not be overridden by the comments
39   plugin