Wiki source code of FAQ
Version 11.1 by Vincent Massol on 2013/02/09
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 | {{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 | |||
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" /> | ||
56 | <input class="withTip" type="text" name="question" value="question text..." size="25"/> | ||
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 | |||
69 | (% class="clearfloats" %)((()))(%%) | ||
70 | |||
71 | {{faq filter="space=FAQ"/}} | ||
72 | |||
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 | ))) |