Wiki source code of FAQ
Version 12.2 by Vincent Massol on 2015/03/19
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity output="false"}} | ||
2 | $xwiki.jsx.use("FAQCode.SkinExtension") | ||
3 | $xwiki.ssx.use("FAQCode.SkinExtension") | ||
4 | ## If this page is called with createFAQ=true then create a new page using the FAQTemplate template | ||
5 | #if ($request.createFAQ == "true") | ||
6 | #set ($newFAQReference = $services.model.createDocumentReference('', 'FAQ', "${request.question}")) | ||
7 | $response.sendRedirect($xwiki.getURL($newFAQReference, "inline", "$!{request.queryString}&title=${request.question}")) | ||
8 | #end | ||
9 | {{/velocity}} | ||
10 | |||
11 | {{box cssClass="faqAbout"}} | ||
12 | **Frequently Asked Questions (FAQ) are an easy way to find answers to most of your questions about XWiki.** | ||
13 | |||
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]]. | ||
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. | ||
17 | {{/box}} | ||
18 | |||
19 | {{warning}} | ||
20 | This is not the right place for asking questions! Use the [[users mailing lists>>dev:Community.MailingLists]] for that. | ||
21 | {{/warning}} | ||
22 | |||
23 | {{error}} | ||
24 | We have migrated to this new FAQ application and there are still FAQ entries in the [[old FAQ Application>>FAQ.WebHomeOld]]. If you can't find the FAQ you're looking for below, try the old one. | ||
25 | {{/error}} | ||
26 | |||
27 | |||
28 | (% class="centered" %) ((( | ||
29 | |||
30 | (% class="faq-link search-faq" %)((( | ||
31 | Search FAQ... | ||
32 | ((( | ||
33 | {{velocity}} | ||
34 | {{html}} | ||
35 | <form action="$xwiki.getURL("FAQCode.FAQSearch")"> | ||
36 | <input type="hidden" name="space" value="FAQ" /> | ||
37 | <input type="text" name="text" value="question text..." size="25" class="withTip" /> | ||
38 | <span class="buttonwrapper"> | ||
39 | <input class="button" type="submit" value="Search" /> | ||
40 | </span> | ||
41 | </form> | ||
42 | {{/html}} | ||
43 | {{/velocity}} | ||
44 | ))) | ||
45 | ))) | ||
46 | |||
47 | (% class="faq-link add-faq" %)((( | ||
48 | Contribute FAQ... | ||
49 | |||
50 | ((( | ||
51 | {{velocity}} | ||
52 | {{html}} | ||
53 | #if ($isGuest) | ||
54 | 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>. | ||
55 | #else | ||
56 | <form action="" id="newfaq"> | ||
57 | <input type="hidden" name="parent" value="FAQ.WebHome" /> | ||
58 | <input type="hidden" name="template" value="FAQCode.FAQTemplate" /> | ||
59 | <input type="hidden" name="createFAQ" value="true" /> | ||
60 | <input class="withTip" type="text" name="question" value="question text..." size="25"/> | ||
61 | <span class="buttonwrapper"> | ||
62 | <input class="button" type="submit" value="Add" /> | ||
63 | </span> | ||
64 | </form> | ||
65 | {{/html}} | ||
66 | #end | ||
67 | {{/velocity}} | ||
68 | ))) | ||
69 | ))) | ||
70 | |||
71 | ))) | ||
72 | |||
73 | (% class="clearfloats" %)((()))(%%) | ||
74 | |||
75 | {{faq filter="space=FAQ"/}} | ||
76 | |||
77 | (% class="hidden" %) ((( | ||
78 | Temporary provide a link for robots to index all FAQs. | ||
79 | In the future, this link will be provided via a sitemap. | ||
80 | [[FAQCode.AllFAQList]] | ||
81 | ))) |