[dokuwiki] Re: new plugin combining and generalizing the graphviz and gnuplot plugins
- From: Chris Smith <chris@xxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Mon, 29 Jan 2007 22:10:13 +0000
Jason Grout wrote:
My questions are:
* Is there a way to have user-editable configuration variables that
are arrays? (I think the answer to this is no. If the answer is yes,
then that takes care of the next question too.) I'd like the
administrator to be able to specify any number of external programs,
each with their own parameters for each different mode with which a
page is rendered.
Not at present. The configuration setting side of the config plugin is
extendable. Each setting type is managed by a php class. That class
acts as an interface between the information displayed on the screen in
the config plugin and the information that is written to the settings
file. Plugins can provide classes to manage new settings types required
by their own config settings.
So yes, if you roll your own :)
* Is there a way to have the user enter a number of parameters an
unspecified number of times? I'd like the user to be able to specify
as many external tools as they want, with all the configuration
settings for each external tool.
See above. You can also provide your plugin with an admin plugin
component. That would give the plugin a menu item on the admin menu and
the ability to display what ever you want on the page and handle the
returned values any way you wanted.
* How exactly do I contribute this plugin to the dokuwiki project?
I presume that I edit the wiki:plugins page to list this plugin and
then create another page for the plugin. Is there a template that I
can use to create the new page?
Yes. No template, other than copying someone else's page and replacing
the plugin specific information with your own.
* Anyone have any suggestions? (This is my first plugin, and really
more of a rewrite of the graphviz plugin than anything else.)
-Jason
Cheers,
Chris
--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist
- References:
Other related posts:
- » [dokuwiki] new plugin combining and generalizing the graphviz and gnuplot plugins
- » [dokuwiki] Re: new plugin combining and generalizing the graphviz and gnuplot plugins
My questions are:* Is there a way to have user-editable configuration variables that are arrays? (I think the answer to this is no. If the answer is yes, then that takes care of the next question too.) I'd like the administrator to be able to specify any number of external programs, each with their own parameters for each different mode with which a page is rendered.
-Jason