[dokuwiki] Re: plugin question: nesting?

Which parser modes are you including?

If your plugin is of type container, you should probably include everything
except other containers.  Refer to the page
http://wiki.splitbrain.org/wiki:syntax_plugins#using_allowedmodes

Also take a look at the code posted for the folded plugin, slightly modified
version at http://wiki.splitbrain.org/plugin:inline_folding2

Cheers,

Chris

> -----Original Message-----
> From: dokuwiki-bounce@xxxxxxxxxxxxx
> [mailto:dokuwiki-bounce@xxxxxxxxxxxxx]On Behalf Of ytrewq1
> Sent: 25 July 2005 23:32
> To: dokuwiki@xxxxxxxxxxxxx
> Subject: [dokuwiki] plugin question: nesting?
>
>
> Is there something special I need to do (or not do) to get
> nesting of syntax
> I defined in a plug-in to nest?  It appears to work ok as
> long as I don't
> nest.  When testing a simple nest, I found the outer portion
> got interpreted
> ok, but the inner portion appears untouched.
>
> I have the type as 'container', and I've also got the following:
>
>     function accepts($mode) {
>         if (!count($this->allowedModes)) {
>             global $PARSER_MODES;
>
>             // XXX: so, which modes should be?
>             $this->allowedModes = array_merge (
>                 // include only the $PARSER_MODES arrays for
> the syntax mode
>                 // types allowed to occur within our own mode.
>                 $PARSER_MODES['container'],
>
>     ...
>
>     function connectTo($mode) {
>         // XXX: necessary?
>         //
> http://article.gmane.org/gmane.comp.web.wiki.dokuwiki.general/665
>         if ($mode == substr(get_class($this), 7)) {
>             return;
>         }
>
> Thanks for any help.
> --
> DokuWiki mailing list - more info at
> http://wiki.splitbrain.org/wiki:mailinglist
>

-- 
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: