Wiki source code of Document Templates & Forms

Version 13.1 by Silvia Macovei on 2014/12/15

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
Manuel Smeria 11.5 7 To learn more about this feature check the [[Developer's Guide>>DevGuide.WebHome]]. More specifically you could start by trying to write a FAQ application as described in the [[FAQ Tutorial>>DevGuide.FAQTutorialManual]].
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
armukul 11.7 11 {{html}}
12 = AR.Mukul Photography =
Vincent Massol 10.1 13
Silvia Macovei 11.3 14 {{image reference="CreatingPageUsingTemplate.png"/}}
armukul 11.6 15 <a href="http://creativecommons.org/licenses/by/4.0/" rel="nofollow"></a>All Rights Reserved by <a href="https://www.flickr.com/photos/always_be_cool/">www.flickr.com/photos/always_be_cool/</a> is licensed under a <a href="http://creativecommons.org/licenses/by/4.0/" rel="nofollow">Creative Commons Attribution 4.0 International License</a>.Based on a work at <a href="https://www.flickr.com/photos/always_be_cool/.Permissions">www.flickr.com/photos/always_be_cool/.Permissions</a> beyond the scope of this license may be available at <a href="https://www.facebook.com/Innocent.mucool" rel="nofollow">www.facebook.com/Innocent.mucool</a>.
armukul 11.7 16 {{/html}}
Vincent Massol 10.1 17
18 = Form Examples =
19
Vincent Massol 9.1 20 == FAQ Form ==
21
22 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:
23
Manuel Smeria 11.4 24 [[image:editfaqentry.png||style="border:1px solid silver; padding:1px; display:block"]]
vmassol 1.1 25
Vincent Massol 9.1 26 == Reference Form ==
27
Silvia Macovei 8.1 28 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]]**!
armukul 11.8 29 rss_200 or rss2
30 An RSS 2.0 formatted feed.
Vincent Massol 5.1 31
Vincent Massol 9.1 32 == Questionnaire Form ==
Guillaume Lerouge 1.7 33
Silvia Macovei 8.1 34 Thanks to this mode, you can create advanced forms such as this [[questionnaire>>http://www.uaic.ro/uaic/bin/view/Main/Chestionar]]:
Guillaume Lerouge 1.6 35
Manuel Smeria 11.4 36 [[image:Chestionar.png||style="border:1px solid silver; padding:1px; display:block"]]

Get Connected