Wiki source code of test
Version 98.8 by Jip-jan Alunkel on January 27, 20:08
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
69.2 | 1 | {{velocity}} |
![]() |
69.3 | 2 | {{html wiki="true"}} |
![]() |
72.2 | 3 | |
![]() |
85.1 | 4 | #set($dr = "bladibla.vinnymossel.hahahha.hohjoho") |
![]() |
78.1 | 5 | #set($docrefArray = $dr.split("\.")) |
![]() |
96.1 | 6 | #set($docrefArrayB = []) |
7 | #foreach($elem in $docrefArray) | ||
![]() |
98.7 | 8 | #set($discard = $docrefArrayB.add("$elem")) |
![]() |
96.1 | 9 | #end |
![]() |
88.1 | 10 | #set($docrefa = $services.model.createDocumentReference($xcontext.mainWikiName, ['bladibla','vinnymossel','hahahha','hohjoho'], 'WebHome')) |
![]() |
98.6 | 11 | #set($docrefb = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArrayB, 'WebHome')) |
![]() |
88.1 | 12 | $docrefa |
![]() |
90.1 | 13 | <br /> |
![]() |
88.1 | 14 | $docrefb |
![]() |
72.2 | 15 | |
16 | |||
17 | |||
18 | |||
19 | |||
![]() |
70.3 | 20 | ##set($obj = $doc.getObject('test.WebHome')) |
21 | ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass | ||
![]() |
70.2 | 22 | $doc.display("blaat") |
![]() |
1.1 | 23 | |
![]() |
54.1 | 24 | #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) |
25 | #set ($xobject = $doc.getObject('cases.Code.casesClass')) | ||
![]() |
55.1 | 26 | #set ($xclass = $xobject.xWikiClass) |
27 | #foreach ($property in $xclass.properties) | ||
![]() |
60.1 | 28 | $xobject.getProperty($property.name).value |
29 | ## $property.name | ||
![]() |
55.1 | 30 | #end |
![]() |
67.1 | 31 | $stringtool.capitalize( "fred from jupiter" ) |
![]() |
55.1 | 32 | #* |
33 | #set ($xdoc=$xwiki.getDocument($Formulier)) | ||
34 | #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass')) | ||
![]() |
54.1 | 35 | #set ($xclass = $xobject.xWikiClass) |
36 | #foreach ($property in $xclass.properties) | ||
37 | $property.Name | ||
38 | $property.value | ||
39 | #end | ||
![]() |
55.1 | 40 | |
41 | #set ($xclass = $xobject.xWikiClass) | ||
42 | #foreach ($property in $xclass.properties) | ||
43 | $property.Name | ||
44 | $property.value | ||
45 | #end | ||
46 | *# | ||
![]() |
61.1 | 47 | |
48 | $xwiki.getURL('.') | ||
![]() |
53.1 | 49 | {{/html}} |
![]() |
68.2 | 50 | |
![]() |
68.6 | 51 | $doc.display("blaat") |
![]() |
71.1 | 52 | |
![]() |
72.1 | 53 | $hasAdmin |
![]() |
47.1 | 54 | {{/velocity}} |
55 |