Wiki source code of Document Templates & Forms

Last modified by Thomas Mortagne on 2023/10/10

Hide last authors
Manuel Smeria 11.5 1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
Silvia Macovei 9.2 4
Silvia Macovei 8.2 5 There's often a need to have structured information. For example you might want to use a wiki to collaboratively enter data, but you'd still like that data to be organized so that it can be searched and manipulated programmatically. In XWiki it's possible to present users with fields they have to fill in when editing a page.
vmassol 1.1 6
Thomas Mortagne 23.1 7 To learn more about this feature check the [[Developer's Guide>>Documentation.DevGuide.WebHome]]. More specifically you could start by trying to write a FAQ application as described in the [[FAQ Tutorial>>Documentation.DevGuide.FAQTutorial.WebHome]].
vmassol 1.1 8
Vincent Massol 10.1 9 In addition to Forms there's also a need for Templates. Templates are predefined wiki pages that can be copied when creating a new page. The Template feature is provided and documented as part of the [[Administration Application>>extensions:Extension.Administration Application]].
Vincent Massol 9.1 10
Silvia Macovei 11.3 11 {{image reference="CreatingPageUsingTemplate.png"/}}
Vincent Massol 10.1 12
13 = Form Examples =
14
Vincent Massol 9.1 15 == FAQ Form ==
16
17 In this wiki we're using this feature to create FAQ entries. When the edit button on a FAQ page is clicked, the following type of screen is shown instead of the standard free form text:
18
Silvia Macovei 15.2 19 {{image reference="editfaqentry.png"/}}
vmassol 1.1 20
Vincent Massol 9.1 21 == Reference Form ==
22
Silvia Macovei 8.1 23 Another good example of form utilization on XWiki.org is the [[References page>>xwiki:References.WebHome]]. When an user wants to add a new reference, the only thing he has to do is to type in the name of the reference he wants to add. He is then presented with a form he can fill in easily. Check it out and add your own project **[[here>>xwiki:References.WebHome]]**!
Vincent Massol 5.1 24
Silvia Macovei 15.2 25 {{image reference="editreference.png"/}}
26
Vincent Massol 9.1 27 == Questionnaire Form ==
Guillaume Lerouge 1.7 28
Vincent Massol 21.3 29 Thanks to this mode, you can create advanced forms such as the following questionnaire:
Guillaume Lerouge 1.6 30
Silvia Macovei 15.2 31 {{image reference="Chestionar.png"/}}

Get Connected