[dokuwiki] multiple admin pages for a plugin

  • From: Michiel Dethmers <michiel-dokuwiki@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Tue, 23 Apr 2013 21:19:06 -0300

Is there a common/agreed way to have two (or more) pages in the admin
area for a plugin?

https://www.dokuwiki.org/devel:admin_plugins mentions only one and all
references I find in the docs are about having one page in the admin
backend for a plugin.

I'd like to have one to display stats and another to do something else.

I was thinking of something like this in the html() method, but was
wondering if there is a better way to do it.

        print '<ul>
        <li><a
href="?do=admin&page='.$this->getPluginName().'&subpage=one">One</a></li>
        <li><a
href="?do=admin&page='.$this->getPluginName().'&subpage=two">Two</a></li>
        </ul>';

thanks

-- 
DokuWiki mailing list - more info at
http://www.dokuwiki.org/mailinglist

Other related posts: