Wiki source code of FAQ

Last modified by teamwire001 on 2025/04/03 11:12

Hide last authors
teamwire001 3.1 1 {{velocity}}
2 #set ($usersGroup = $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.00-user'))
3 #set ($customerGroup = $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.01-customer'))
4 #set ($onpremiseGroup = $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.02-onpremise'))
5 #set ($partnerGroup = $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.03-partner'))
6 #set ($marketingGroup = $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.04-marketing'))
7 #set ($teamwireGroup = $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.teamwire'))
8 #set($firstName =
9 $xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('first_name').getValue())
10 #set($lastName
11 = $xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('last_name').getValue())
12
13 ## -------------------
14 ## start Guest and 00-user
15 ## -------------------
16 #if($isGuest or ($xwiki.getUser($xcontext.user).isUserInGroup('XWiki.00-user')))
17
18 {{documentTree root="document:xwiki:Public.FAQ.WebHome" compact="true" showTranslations="false" showAttachments="false" limit="999" exclusions="document:xwiki:Public.FAQ.WebPreferences,document:xwiki:Public.FAQ.Code.WebHome" sortDocumentsBy="creationDate:asc"/}}
19
20 #end
21 ## end Guest and 00-user and 01-customer view
22 ## -------------------
23 ## start 01-customer view
24 ## -------------------
25 #if($xwiki.getUser($xcontext.user).isUserInGroup('XWiki.01-customer') or $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.teamwire'))
26
27 {{documentTree root="document:xwiki:Public.FAQ.WebHome" compact="true" showTranslations="false" showAttachments="false" limit="999" exclusions="document:xwiki:Public.FAQ.WebPreferences,document:xwiki:Public.FAQ.Code.WebHome" sortDocumentsBy="creationDate:asc"/}}
28
29 {{documentTree root="document:xwiki:Customer.FAQ.WebHome" compact="true" showTranslations="false" showAttachments="false" limit="999" exclusions="document:xwiki:Customer.FAQ.WebPreferences,document:xwiki:Customer.FAQ.Code.WebHome" sortDocumentsBy="creationDate:asc"/}}
30 #end
31 ## end Guest and 00-user and 01-customer view
32 ## -------------------
33 ## start 02-onpremise view
34 ## -------------------
35 #if($xwiki.getUser($xcontext.user).isUserInGroup('XWiki.02-onpremise') or $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.teamwire'))
36
37 {{documentTree root="document:xwiki:OnPremise.FAQ.WebHome" compact="true" showTranslations="false" showAttachments="false" limit="999" exclusions="document:xwiki:OnPremise.FAQ.WebPreferences,document:xwiki:OnPremise.FAQ.Code.WebHome" sortDocumentsBy="creationDate:asc"/}}
38 #end
39 ## end 02-onpremise view
40 ## -------------------
41 ## start 03-partner view
42 ## -------------------
43 #if($xwiki.getUser($xcontext.user).isUserInGroup('XWiki.03-partner') or $xwiki.getUser($xcontext.user).isUserInGroup('XWiki.teamwire'))
44
45 {{documentTree root="document:xwiki:Partner.FAQ.WebHome" compact="true" showTranslations="false" showAttachments="false" limit="999" exclusions="document:xwiki:Partner.FAQ.WebPreferences,document:xwiki:Partner.FAQ.Code.WebHome" sortDocumentsBy="creationDate:asc"/}}
46
47 #end
48 ## end 03-partner view
49 {{/velocity}}