Wiki source code of test

Version 83.1 by Jip-jan Alunkel on janeiro 26, 21:24

Show last authors
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 $chain
20
21
22
23
24
25
26
27
28 ##set($obj = $doc.getObject('test.WebHome'))
29 ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
30 $doc.display("blaat")
31
32 #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking"))
33 #set ($xobject = $doc.getObject('cases.Code.casesClass'))
34 #set ($xclass = $xobject.xWikiClass)
35 #foreach ($property in $xclass.properties)
36 $xobject.getProperty($property.name).value
37 ## $property.name
38 #end
39 $stringtool.capitalize( "fred from jupiter" )
40 #*
41 #set ($xdoc=$xwiki.getDocument($Formulier))
42 #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass'))
43 #set ($xclass = $xobject.xWikiClass)
44 #foreach ($property in $xclass.properties)
45 $property.Name
46 $property.value
47 #end
48
49 #set ($xclass = $xobject.xWikiClass)
50 #foreach ($property in $xclass.properties)
51 $property.Name
52 $property.value
53 #end
54 *#
55
56 $xwiki.getURL('.')
57 {{/html}}
58
59 $doc.display("blaat")
60
61 $hasAdmin
62 {{/velocity}}