Wiki source code of test
Version 84.1 by Jip-jan Alunkel on January 26, 21:25
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | {{html wiki="true"}} | ||
3 | |||
4 | #set($dr = "bladibla.vinnymossel") | ||
5 | #set($docrefArray = $dr.split("\.")) | ||
6 | ##set($drSpaceA = $docrefArray[0]) | ||
7 | ##set($drSpaceB = $docrefArray[1]) | ||
8 | #set($docref = $services.model.createDocumentReference($xcontext.mainWikiName, ['bladibla', 'vinnymossel'], 'WebHome')) | ||
9 | |||
10 | #set($chain = "") | ||
11 | #foreach($space in $docrefArray) | ||
12 | #if($foreach.count == 1) | ||
13 | #set($comma = "") | ||
14 | #else | ||
15 | #set($comma = ", ") | ||
16 | #end | ||
17 | #set($chain = "${chain}${comma}'${space}'") | ||
18 | #end | ||
19 | #set($chain = "[${chain}]") | ||
20 | $chain | ||
21 | |||
22 | |||
23 | |||
24 | |||
25 | |||
26 | |||
27 | |||
28 | |||
29 | ##set($obj = $doc.getObject('test.WebHome')) | ||
30 | ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass | ||
31 | $doc.display("blaat") | ||
32 | |||
33 | #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) | ||
34 | #set ($xobject = $doc.getObject('cases.Code.casesClass')) | ||
35 | #set ($xclass = $xobject.xWikiClass) | ||
36 | #foreach ($property in $xclass.properties) | ||
37 | $xobject.getProperty($property.name).value | ||
38 | ## $property.name | ||
39 | #end | ||
40 | $stringtool.capitalize( "fred from jupiter" ) | ||
41 | #* | ||
42 | #set ($xdoc=$xwiki.getDocument($Formulier)) | ||
43 | #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass')) | ||
44 | #set ($xclass = $xobject.xWikiClass) | ||
45 | #foreach ($property in $xclass.properties) | ||
46 | $property.Name | ||
47 | $property.value | ||
48 | #end | ||
49 | |||
50 | #set ($xclass = $xobject.xWikiClass) | ||
51 | #foreach ($property in $xclass.properties) | ||
52 | $property.Name | ||
53 | $property.value | ||
54 | #end | ||
55 | *# | ||
56 | |||
57 | $xwiki.getURL('.') | ||
58 | {{/html}} | ||
59 | |||
60 | $doc.display("blaat") | ||
61 | |||
62 | $hasAdmin | ||
63 | {{/velocity}} |