Codice sorgente Wiki di test

Version 72.2 by Jip-jan Alunkel on gennaio 26, 16:42

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, ['${drSpaceA}', '${drSpaceB}'], 'WebHome'))
9
10 $docref
11
12
13
14
15
16
17
18
19
20
21 ##set($obj = $doc.getObject('test.WebHome'))
22 ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
23 $doc.display("blaat")
24
25 #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking"))
26 #set ($xobject = $doc.getObject('cases.Code.casesClass'))
27 #set ($xclass = $xobject.xWikiClass)
28 #foreach ($property in $xclass.properties)
29 $xobject.getProperty($property.name).value
30 ## $property.name
31 #end
32 $stringtool.capitalize( "fred from jupiter" )
33 #*
34 #set ($xdoc=$xwiki.getDocument($Formulier))
35 #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass'))
36 #set ($xclass = $xobject.xWikiClass)
37 #foreach ($property in $xclass.properties)
38 $property.Name
39 $property.value
40 #end
41
42 #set ($xclass = $xobject.xWikiClass)
43 #foreach ($property in $xclass.properties)
44 $property.Name
45 $property.value
46 #end
47 *#
48
49 $xwiki.getURL('.')
50 {{/html}}
51
52 $doc.display("blaat")
53
54 $hasAdmin
55 {{/velocity}}