splitbrain / dokuwiki-plugin-bureaucracy

Create forms and generate pages or emails from them
http://www.dokuwiki.org/plugin:bureaucracy
GNU General Public License v2.0
43 stars 46 forks source link

Possibility to have template selector ? #181

Open LeDistordu opened 8 years ago

LeDistordu commented 8 years ago

I need form like this :

Documentation name : Template type (dropdown) : Tata / Titi / Toto

It's possible ?
SFITCS commented 7 years ago

Yes - it's possible.

One way is this:-

  1. Create a template namespace in the data/pages directory (data/pages/templates).
  2. Put your three templates there:- tata.txt, titi.txt, toto.txt
  3. Create a form based on this (replace $Destination with a real destination) :-
<form>
action template templates:"@@Template type@@" $Destination
Select "Template type" "Tata|Titi|Toto"
Fieldset
Submit "Press the button to win a prize"
Thanks "Your prize is in the mail"
</form>

If you have more questions, unless they are bugs or wishes for the plugin, post them to DokuWiki User Forum - General Help and Support - Plugins - after checking whether questions like this have been asked previously (this one has).

LeDistordu commented 7 years ago
<form>
textbox   "Nom de la documentation" @
action    template templates:"@@Templates@@"
Select "Templates" "tpl_prodcs|tpl_log"
Fieldset
Submit "OK"
</form>

Great ! It work ! ^^

Is it possible to add a presentation name for dropdown list ?

tpl_prodcs = Template for production tpl_doclog = Template for logiciel