dokuwiki-plugin-bureaucracy icon indicating copy to clipboard operation
dokuwiki-plugin-bureaucracy copied to clipboard

Possibility to have template selector ?

Open LeDistordu opened this issue 8 years ago • 2 comments

I need form like this :

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

It's possible ?

LeDistordu avatar Aug 27 '16 15:08 LeDistordu

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).

SFITCS avatar Oct 23 '16 08:10 SFITCS

<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

LeDistordu avatar Mar 22 '17 13:03 LeDistordu