Wiki source code of Lemon icebox pie

Version 3.1 by Michael Wood on 2026/09/12 09:43

Hide last authors
Michael Wood 2.1 1 (% class="row" %)
2 (((
3 (% class="jumbotron" %)
4 (((
5 (% class="container" %)
6 (((
7 Jumbo-tron
8
9 )))
10 )))
11 )))
12
Michael Wood 3.1 13 =
14 Show my name =
15
16
17 {{velocity}}
18 $services.user.getProperties("xwiki:XWiki.Martinez").getEmail()
19 {{/velocity}}
Michael Wood 1.1 20
Michael Wood 3.1 21 {{velocity}}
22 #set($allGroupsInAllWikis = $services.user.group.getMembers('xwiki:XWiki.XWikiAdminGroup'))
Michael Wood 1.1 23
Michael Wood 3.1 24 #foreach($prop in $allGroupsInAllWikis)
25 #set($userDoc = $xwiki.getDocument($prop))
26 $userDoc.email
27 #end
Michael Wood 1.1 28
Michael Wood 3.1 29 {{/velocity}}
30
31
32 {{velocity}}
33 #set($allGroupsInAllWikis = $services.user.group.getMembers('xwiki:XWiki.XWikiAdminGroup'))
Michael Wood 1.1 34
Michael Wood 3.1 35 #foreach($prop in $allGroupsInAllWikis)
36 #set($userDoc = $xwiki.getDocument($prop))
37 $userDoc.email
38 #end
Michael Wood 1.1 39
Michael Wood 3.1 40 {{/velocity}}
41
42
43
44 require(['xwiki-meta'], function (xm) {
45 console.log('Hello: ' + XWiki.Model.serialize(xm.userReference));
46 // Will display "Hello xwiki:XWiki.Admin" in the console
47 });
48
49 {{velocity}}
50 #set($firstName =
51 $xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('first_name').getValue())
52 #set($lastName
53 =
54 $xwiki.getDocument($context.user).getObject('XWiki.XWikiUsers').getProperty('last_name').getValue())
Michael Wood 1.1 55
Michael Wood 3.1 56 $firstName $lastName
57 {{/velocity}}
Michael Wood 1.1 58
Michael Wood 3.1 59

Made with ♥ by the Virtualize Brief