Código fuente wiki de test

Versión 87.1 por Jip-jan Alunkel el enero 27, 18:54

Mostrar los últimos autores
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($docref = $services.model.createDocumentReference($xcontext.mainWikiName, $chain, 'WebHome'))
20
21 $docref
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}}