Wiki source code of FAQ

Version 11.1 by Vincent Massol on 2013/02/09

Hide last authors
Vincent Massol 1.1 1 {{velocity output="false"}}
Vincent Massol 4.1 2 $xwiki.jsx.use("FAQCode.SkinExtension")
3 $xwiki.ssx.use("FAQCode.SkinExtension")
Vincent Massol 1.1 4 ## If this page is called with createFAQ=true then create a new page using the FAQTemplate template
5 #if ($request.createFAQ == "true")
Vincent Massol 10.3 6 #set ($newFAQReference = $services.model.createDocumentReference('', 'FAQ', "${request.question}"))
7 $response.sendRedirect($xwiki.getURL($newFAQReference, "inline", "$!{request.queryString}&title=${request.question}"))
Vincent Massol 1.1 8 #end
9 {{/velocity}}
10
11 {{box cssClass="faqAbout"}}
Vincent Massol 7.1 12 **Frequently Asked Questions (FAQ) are an easy way to find answers to most of your questions about XWiki.**
Vincent Massol 6.1 13
Vincent Massol 10.2 14 If you have a question you should verify if it's already in the FAQ list. If not then you should [[post a message on the XWiki Mailing List/Forum>>dev:Community.MailingLists]].
Vincent Massol 6.1 15
16 The strategy is then for people who know the answer to create a new FAQ entry here about the question and reply in the mail with the link to the new FAQ Entry. In this manner we will quickly enrich this FAQ database.
Vincent Massol 1.1 17 {{/box}}
18
Vincent Massol 11.1 19 {{error}}
20 We have migrated to this new FAQ application and we're moving FAQ entries one by one from the [[old FAQ Application>>FAQ.WebHomeOld]]. If you can't find the FAQ you're looking for below, try the old one.
21 {{/error}}
22
23
Vincent Massol 1.1 24 (% class="centered" %) (((
25
26 (% class="faq-link search-faq" %)(((
27 Search FAQ...
28 (((
29 {{velocity}}
30 {{html}}
31 <form action="$xwiki.getURL("FAQCode.FAQSearch")">
32 <input type="hidden" name="space" value="FAQ" />
33 <input type="text" name="text" value="question text..." size="25" class="withTip" />
34 <span class="buttonwrapper">
35 <input class="button" type="submit" value="Search" />
36 </span>
37 </form>
38 {{/html}}
39 {{/velocity}}
40 )))
41 )))
42
43 (% class="faq-link add-faq" %)(((
44 Contribute FAQ...
45
46 (((
47 {{velocity}}
48 {{html}}
49 #if ($isGuest)
50 You need first to <a href="${escapetool.xml($xwiki.getURL("Main.WebHome", "login", "xredirect=$doc.externalURL"))}">log in</a> or <a href="${escapetool.xml($xwiki.getURL("xwiki:Main.WebHome", "register", "xredirect=$doc.externalURL"))}">register</a>.
51 #else
52 <form action="" id="newfaq">
53 <input type="hidden" name="parent" value="FAQ.WebHome" />
54 <input type="hidden" name="template" value="FAQCode.FAQTemplate" />
55 <input type="hidden" name="createFAQ" value="true" />
Vincent Massol 5.1 56 <input class="withTip" type="text" name="question" value="question text..." size="25"/>
Vincent Massol 1.1 57 <span class="buttonwrapper">
58 <input class="button" type="submit" value="Add" />
59 </span>
60 </form>
61 {{/html}}
62 #end
63 {{/velocity}}
64 )))
65 )))
66
67 )))
68
Vincent Massol 9.1 69 (% class="clearfloats" %)((()))(%%)
Vincent Massol 1.1 70
Vincent Massol 10.1 71 {{faq filter="space=FAQ"/}}
Vincent Massol 8.1 72
Vincent Massol 1.1 73 (% class="hidden" %) (((
74 Temporary provide a link for robots to index all FAQs.
75 In the future, this link will be provided via a sitemap.
76 [[FAQCode.AllFAQList]]
77 )))
78

Get Connected