Wiki source code of FAQTutorialAWM

Version 6.1 by Sorin Burjan on 2013/02/18

Show last authors
1 {{box cssClass="floatinginfobox" title="**Contents**"}}
2 {{toc/}}
3 {{/box}}
4
5 This tutorial will show you how to build a Frequently Asked Questions (FAQs) Application much like the one you can find on the [[FAQ page>>xwiki:FAQ.WebHome]]. This is a very simple application that is made using App Within Minutes Application, you may frequently use this technique as the basis for several different kinds of applications.
6
7
8 = Application Overview=
9
10
11 The FAQ application allows users to post a question by entering the question into a simple form field and then submitting the form. The question then appears in a list along with all other questions that have been previously posted. Users can click on the questions to view both the question and answer in a consistently styled view. If the question has not yet been answered, any user can post an answer to the question by editing the page. In edit mode, the page will display a web form that is the same for every FAQ page.
12
13 = Creating the FAQ Application=
14
15 Start creating your FAQ Application by going to the App Within Minutes home page. Since XWiki Enterprise 4.2 it's available from the "Applications" panel.
16 {{image reference='FAQ-Go1.png'/}}
17 {{image reference='FAQ-Go2.png'/}}
18
19 There you can see listed the existing applications. Click on the "Create Application" button to start the wizard.
20
21 {{image reference='FAQ-Go3.png'/}}
22
23 In the first step you have to provide the application name, which will determine the application home page URL and the application space. Each application is mapped to an XWiki space.
24
25 {{image reference='FAQ-Go4.png'/}}
26
27 In the second step you define the application structure. Drag and drop a Long Text field from Field Palette. Then change the name from "Long Text" to "Answer". This will be the Answer field.
28
29 {{image reference='FAQ-NEW1.png'/}}
30
31 In the last step you customize the way the home page of your application will look like. Click on the drop-down menu and select the "Creation date" item then click on the add button. This will add a "Creation date" column in your application live table.
32
33 {{image reference='FAQ-NEW2.png'/}}
34
35
36 = Creating new FAQ entries=
37
38 To create a new FAQ entry click on the "ADD NEW ENTRY" button from the "Actions" panel.
39
40 {{image reference='FAQ-NEW3.png'/}}
41
42 Write your question and click on the add button.
43
44 {{image reference='FAQ-NEW4.png'/}}
45
46
47 Click on "SAVE & VIEW" button. Go back to the "FAQ.WebHome" page to see the list of existing questions.
48
49
50 = Answering to FAQ questions=
51
52 To answer to a question click on the edit button in the "Action" column from the live table, enter your answer in the "Answer" field and press "SAVE & VIEW" button.
53
54 {{image reference='FAQ-NEW5.png'/}}

Get Connected