[dokuwiki] Re: if auth plugin
- From: Christopher Arndt <chris.arndt@xxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Fri, 23 Sep 2005 17:30:01 +0100
Otto Vainio schrieb:
> Thanks Chris! Found it. Really is time to get some sleep ;-)
>
> I also fixed this to set $renderer->nocache(); I know it will use more
> resources to render the page every time. But if you _really_ need this
> feature, then you can use it.
>
> New fixed version in http://wiki.splitbrain.org/plugin:ifauth
This is almost what I wanted. I just tried it, and it works for as long as I
enclose whole paragraphs between the <ifauth>...</ifauth> tags. Nice!
I doesn't work inside a paragraph, because the output is enclosed by
<p>...</p>. I guess, this is due to the usage of the p_render() function in
line 125.
I think, that also answers my question in my earlier mail, how to feed back
text to the parser. The problem is, as some of you already mentioned, that
p_render sets up a new parser instance again. Looking at this function, I now
understand Chris Smith's comments about recursively calling the parser. I think
this would be good extension to the plugin API.
Chris
- Follow-Ups:
- [dokuwiki] Re: if auth plugin
- From: Otto Vainio
- References:
Other related posts:
- » [dokuwiki] Re: if auth plugin
- » [dokuwiki] Re: if auth plugin
- » [dokuwiki] Re: if auth plugin
- » [dokuwiki] Re: if auth plugin
- [dokuwiki] Re: if auth plugin
- From: Otto Vainio