
|
[dokuwiki]
||
[Date Prev]
[08-2005 Date Index]
[Date Next]
||
[Thread Prev]
[08-2005 Thread Index]
[Thread Next]
[dokuwiki] Re: Plugins to be overhauled
- From: Esther Brunner <esther@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Wed, 3 Aug 2005 12:54:12 +0200
Hi Dave
I needed this functionality myself recently and so decided to hack
your code
:) My approach was to create a new $conf setting which sets the
discussion
feature to "manual" mode. I created a plugin with two new tags:
~~DISCUSSION~~
This will create a new discussion page (or use an existing one)
when the
Wiki page is parsed.
~~NODISCUSSION~~
This will delete (archive) any existing discussion page when the
Wiki page
is parsed.
If manual mode is enabled, the code in discussion.php will only
render the
comments and comment form if a discussion page already exists. This
technique allows the Wiki pages to remain cached when discussions are
enabled.
I'll be happy to forward my changes if you are interested.
I'm very interested, please send me the code: esther [at] kaffeehaus
[dot] ch
I think, if you install the discussion template, the default should
be that the discussion page and commenting form appears, but it
should be possible to turn it off manually. Caching is in the current
implementation as a template no problem: the pages and discussion
pages usually come from the cache. It's only, if I want eigher to
enable or disable the discussion feature manually, I must perform
some checks when the page is viewed.
-- esther
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|