Translations of this page?:

Plugin Development

DokuWiki has a flexible plugin API which allows to extend its functionality, be it additional syntax modes, custom action modes, new export formats and a lot more. Depending on the plugin's purpose, a plugin can either consist of one, or more, of the following plugin types.

Plugin Types

At the moment DokuWiki features five different plugin types.

  • Syntax Plugins extend DokuWiki's basic syntax.
  • Action Plugins can be used to extend or replace many aspects of DokuWiki's core operations, from saving wikipages to adding new action modes.
  • Admin Plugins can provide administration functionality for DokuWiki - these plugins are accessible to superusers and managers via the Admin button.
  • Helper Plugins can be used to provide functionality to many other plugins, so each plugin doesn't have to re-implement a certain function over and over again.
  • Renderer Plugins allow to create new export modes and to replace the standard DokuWiki xhtml renderer.

Plugin Wizard

A Wizard to create the basic skeleton for a DokuWiki plugin can be found at http://dwpluginwiz.chimeric.de/ and is recommended to be used for starting the development.

If you later need to extend your plugin refer to the Plugin File Structure on how files are arranged in a plugin.

Publishing a Plugin on dokuwiki.org

If you created a plugin, please share it with the community. Just create a page named after your plugin in the plugin namespace. Eg. if your pluginfolder is named sample create a page plugin:sample here in the wiki.

The page should contain all needed documentation on how to install and use the plugin and give users a pretty good idea what it does before installing the plugin. Adding screenshots might be a good idea as well1).

At the top of the plugin page a few metadata fields have to be filled. A description of each field can be found here.

Uploads are not allowed on dokuwiki.org, so you need to host your plugin files somewhere else. We recommend to manage your source with a Revision Control System like git. If you do, it's easiest to use a public repository host like Github which offers also a bug tracker for your repository.

Plugin Overview

Plugin Survey 2009 is a developers overview of all plugins present in the plugin namespace of www.dokuwiki.org. Data was collected by an automated script 2009-08-13 with some additional manual data refining and mining. A total of 562 pages was examined containing 539 plugins. Source code for 456 plugins (85%) was downloaded and analyzed.

1) You can use the imageshack plugin to add images here
 
devel/plugins.txt · Last modified: 2010/01/10 10:54 by andi
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate