[dokuwiki] Re: COMMON_PAGE_FROMTEMPLATE event
- From: Michael Hamann <michael@xxxxxxxxxxxxxxxx>
- To: dokuwiki <dokuwiki@xxxxxxxxxxxxx>
- Date: Thu, 27 Jan 2011 19:11:26 +0100
Hi,
Excerpts from Andreas Gohr's message of 2011-01-27 14:16:58 +0100:
[...]
> I'd like to have an event that makes it possible to do three things:
>
> * prevent the lookup of page templates
> * load your own page template text
> * prevent or allow pattern replacements on the loaded template text
>
> There are two methods I could imagine
>
> 1) use two events. keep the current event as is and wrap a second
> event around the template loadin process
I think this might be a bit confusing and will require all current
plugins to be changed to use the new event.
> 2) modify the current event to not wrap around the replacement logic
> but around the template loading process and have it set an event data
> option that controls if the output should be parsed
Perhaps that option could also be a callback so the plugin can add its
own replacement function - but okay, that could also be done in the
after handler. I also don't know if that would require more changes in
the existing plugins, at least it would probably be easier to support
both the current and the future behavior.
Michael
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist
Other related posts: