Wiki source code of test

Version 89.1 by Jip-jan Alunkel on January 27, 18:57

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