This is an old revision of the document!
Table of Contents
survey Plugin
Compatible with DokuWiki
rincewind
This extension has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues.
Introduction
This plugin creates some kind of Expert system inside Dokuwiki and can be used for knowledge bases, FAQs, questionnaires and so on. I wrote it, because we were needing a system to elaborate user problems on a hotline to either solve the problem or have enough information for second level.
Installation
Install the plugin using the Plugin Manager and the download URL above, which points to latest version of the plugin. Refer to Plugins on how to install plugins manually.
Syntax
We're roughly using the unordered list syntax here to create a tree of questions and answers. There has to be only one entry on the topmost level, which is the first, the “root” question. The next level contains possible answers. Underneath these answers can be other questions and so on.
* What's the species? * Human * Animal * Has it claws? * Yes * No * Is it big? * Yes * It's an [[http://en.wikipedia.org/wiki/Elephant|Elephant]]! * No * Plant
In this simple example, the user is asked the root question “Whats the species?” and can choose between “Human”, “Animal” and “Plant”. Clicking on “Animal” reveals another question and so on. In this example there's one real exit point and that's “It's an Elephant”.
As you can see, we're supporting external http and ftp and internal links using the common link syntax here. Also an alternative name can be specified.
Development
Change Log
- An error occurred while fetching this feed: http://github.com/feeds/dploeger/commits/dokuwiki-plugin-survey/master
ToDo/Wish List
I think, the code is rubbish. Perhaps someone can give me a hand over at github to clear up the logic of the code. I can't seem to get my head around it.