Wiki source code of Lemon icebox pie
Version 3.1 by Michael Wood on 2026/09/12 09:43
Hide last authors
| author | version | line-number | content |
|---|---|---|---|
| |
2.1 | 1 | (% class="row" %) |
| 2 | ((( | ||
| 3 | (% class="jumbotron" %) | ||
| 4 | ((( | ||
| 5 | (% class="container" %) | ||
| 6 | ((( | ||
| 7 | Jumbo-tron | ||
| 8 | |||
| 9 | ))) | ||
| 10 | ))) | ||
| 11 | ))) | ||
| 12 | |||
| |
3.1 | 13 | = |
| 14 | Show my name = | ||
| 15 | |||
| 16 | |||
| 17 | {{velocity}} | ||
| 18 | $services.user.getProperties("xwiki:XWiki.Martinez").getEmail() | ||
| 19 | {{/velocity}} | ||
| |
1.1 | 20 | |
| |
3.1 | 21 | {{velocity}} |
| 22 | #set($allGroupsInAllWikis = $services.user.group.getMembers('xwiki:XWiki.XWikiAdminGroup')) | ||
| |
1.1 | 23 | |
| |
3.1 | 24 | #foreach($prop in $allGroupsInAllWikis) |
| 25 | #set($userDoc = $xwiki.getDocument($prop)) | ||
| 26 | $userDoc.email | ||
| 27 | #end | ||
| |
1.1 | 28 | |
| |
3.1 | 29 | {{/velocity}} |
| 30 | |||
| 31 | |||
| 32 | {{velocity}} | ||
| 33 | #set($allGroupsInAllWikis = $services.user.group.getMembers('xwiki:XWiki.XWikiAdminGroup')) | ||
| |
1.1 | 34 | |
| |
3.1 | 35 | #foreach($prop in $allGroupsInAllWikis) |
| 36 | #set($userDoc = $xwiki.getDocument($prop)) | ||
| 37 | $userDoc.email | ||
| 38 | #end | ||
| |
1.1 | 39 | |
| |
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()) | ||
| |
1.1 | 55 | |
| |
3.1 | 56 | $firstName $lastName |
| 57 | {{/velocity}} | ||
| |
1.1 | 58 | |
| |
3.1 | 59 |