Code source wiki de test
Version 81.1 par Jip-jan Alunkel le janvier 26, 21:21
Masquer les derniers auteurs
author | version | line-number | content |
---|---|---|---|
![]() |
69.2 | 1 | {{velocity}} |
![]() |
69.3 | 2 | {{html wiki="true"}} |
![]() |
72.2 | 3 | |
![]() |
76.1 | 4 | #set($dr = "bladibla.vinnymossel") |
![]() |
78.1 | 5 | #set($docrefArray = $dr.split("\.")) |
![]() |
75.1 | 6 | ##set($drSpaceA = $docrefArray[0]) |
7 | ##set($drSpaceB = $docrefArray[1]) | ||
![]() |
73.2 | 8 | #set($docref = $services.model.createDocumentReference($xcontext.mainWikiName, ['bladibla', 'vinnymossel'], 'WebHome')) |
![]() |
72.2 | 9 | |
![]() |
80.1 | 10 | #set($chain = "") |
11 | #foreach($space in $docrefArray) | ||
![]() |
81.1 | 12 | #set($chain = "'${space}', ${chain}") |
![]() |
80.1 | 13 | #end |
14 | $chain | ||
![]() |
72.2 | 15 | |
16 | |||
17 | |||
18 | |||
19 | |||
20 | |||
21 | |||
22 | |||
![]() |
70.3 | 23 | ##set($obj = $doc.getObject('test.WebHome')) |
24 | ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass | ||
![]() |
70.2 | 25 | $doc.display("blaat") |
![]() |
1.1 | 26 | |
![]() |
54.1 | 27 | #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) |
28 | #set ($xobject = $doc.getObject('cases.Code.casesClass')) | ||
![]() |
55.1 | 29 | #set ($xclass = $xobject.xWikiClass) |
30 | #foreach ($property in $xclass.properties) | ||
![]() |
60.1 | 31 | $xobject.getProperty($property.name).value |
32 | ## $property.name | ||
![]() |
55.1 | 33 | #end |
![]() |
67.1 | 34 | $stringtool.capitalize( "fred from jupiter" ) |
![]() |
55.1 | 35 | #* |
36 | #set ($xdoc=$xwiki.getDocument($Formulier)) | ||
37 | #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass')) | ||
![]() |
54.1 | 38 | #set ($xclass = $xobject.xWikiClass) |
39 | #foreach ($property in $xclass.properties) | ||
40 | $property.Name | ||
41 | $property.value | ||
42 | #end | ||
![]() |
55.1 | 43 | |
44 | #set ($xclass = $xobject.xWikiClass) | ||
45 | #foreach ($property in $xclass.properties) | ||
46 | $property.Name | ||
47 | $property.value | ||
48 | #end | ||
49 | *# | ||
![]() |
61.1 | 50 | |
51 | $xwiki.getURL('.') | ||
![]() |
53.1 | 52 | {{/html}} |
![]() |
68.2 | 53 | |
![]() |
68.6 | 54 | $doc.display("blaat") |
![]() |
71.1 | 55 | |
![]() |
72.1 | 56 | $hasAdmin |
![]() |
47.1 | 57 | {{/velocity}} |
58 |