[dokuwiki] Re: can't get my plugin to allow Dokuwiki syntax within it

  • From: Tamás Haraszti <haraszti@xxxxxxxxxxxxxxxxxx>
  • To: Jamin Collins <jcollins@xxxxxxxxxxxxxxxx>
  • Date: Wed, 12 Sep 2018 17:21:26 +0200

Well,

it is a syntax plugin. There is a function: p_render, which can
render a doku content within the renderer of your plugin. It is
expensive, so use it carefully.

It is mentioned for example here:
https://forum.dokuwiki.org/thread/1334

Usage something like: ($out is the text we return after rendering)
...
$tmp = array();
...
$out .= p_render('xhtml',p_get_instructions($your_text_variable),
$tmp);
...

Bests,
T.

#This e-mail is a reply to the message of Jamin Collins
<jcollins@xxxxxxxxxxxxxxxx>, sent on Wed, 12 Sep 2018 08:41:51 -0600:

#"
Anyone?

On 8/22/18 9:09 AM, Jamin Collins wrote:
I'm adding some features to an existing plugin of mine: 
https://www.dokuwiki.org/plugin:mtg.

I'm trying to allow existing Dokuwiki syntax (like URL links)
within my plugin. I've tried changing my plugin's getType()
response to either 'container' or 'formatting':
 
    public function getType()
    {
        return 'formatting';
    }  
and adding getAllowedTypes() with the appropriate mode returned in
an array.
 
    public function getAllowedTypes()
    {
        return array('substition');
    }  

But have had no success, any pointers?
 
#end of previous message"
--
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: