
|
[dokuwiki]
||
[Date Prev]
[08-2005 Date Index]
[Date Next]
||
[Thread Prev]
[08-2005 Thread Index]
[Thread Next]
[dokuwiki] Re: Plugins to be overhauled
- From: "Dave Lawson" <dlawson@xxxxxxxxxxxxxxx>
- To: <dokuwiki@xxxxxxxxxxxxx>
- Date: Tue, 2 Aug 2005 10:57:25 -0400
Hi Esther,
> - I plan another plugin for use in combination of my Discussion
> Template: ~~NOCOMMENTS~~ (as suggested by someone in the
> wiki). The plugin will turn caching off for that specific
> page (unfortunately), because it needs to set a global
> variable every time the page is viewed. Maybe someone has a
> better solution to achieve this job?
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.
BTW, hello to everyone! I've been happily using DokuWiki for a couple weeks
now, but this is my first post to the list.
-Dave
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
|

|