This is the main part of the plugin. By including the ~~DISCUSSION~~
instruction in your wiki page, a discussion section will be appended after the normal wiki page content. To turn it off again, use ~~DISCUSSION:off~~
. If you want to show the existing discussion but don't want to allow new comments / replies, use ~~DISCUSSION:closed~~
.
~~DISCUSSION~~ ~~DISCUSSION:off~~ ~~DISCUSSION:closed~~
A custom title can be appended after the separator |.
~~DISCUSSION|Custom Title String~~ ~~DISCUSSION:closed|Custom Title String~~
After each comment in the discussion section there may be up to three buttons (depending on your rights):
Reply
button. The comment entry form will then be placed accordingly.Of course, the whole DokuWiki syntax can be used in comments as well. But there are problems with headers and footnotes as they may produce conflicting IDs and thus invalid XHTML. I'm looking for a way to either allow only a subset of the wiki syntax or automatically create unique IDs.