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