Wiki source code of test
Version 107.1 by Jip-jan Alunkel on February 12, 16:30
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") |
![]() |
107.1 | 5 | #set($drDoc = $xwiki.getDocument("test.minifytest.WebHome")) |
![]() |
106.1 | 6 | $drDoc.getParent() |
![]() |
99.1 | 7 | #set($docrefArray = []) |
8 | #set($lastIndex = $dr.lastIndexOf('.')) | ||
9 | #set($docrefSemafore = $dr.substring(0, $lastIndex).split("\.")) | ||
10 | #foreach($elem in $docrefSemafore) | ||
11 | #set($discard = $docrefArray.add("${elem}")) | ||
12 | #end | ||
13 | #set($last = "$dr.substring($lastIndex + 1)") | ||
14 | #set($xdocref = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArray, $last)) | ||
![]() |
98.14 | 15 | <br /> |
![]() |
98.73 | 16 | parentb: $xdocref |
![]() |
98.14 | 17 | <br /> |
![]() |
98.19 | 18 | #set($parentTitleb = $parentReferenceb.getName()) |
![]() |
98.22 | 19 | parentTitleB: $parentTitleb |
![]() |
98.23 | 20 | |
21 | |||
![]() |
70.3 | 22 | ##set($obj = $doc.getObject('test.WebHome')) |
23 | ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass | ||
![]() |
70.2 | 24 | $doc.display("blaat") |
![]() |
1.1 | 25 | |
![]() |
54.1 | 26 | #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) |
27 | #set ($xobject = $doc.getObject('cases.Code.casesClass')) | ||
![]() |
55.1 | 28 | #set ($xclass = $xobject.xWikiClass) |
29 | #foreach ($property in $xclass.properties) | ||
![]() |
60.1 | 30 | $xobject.getProperty($property.name).value |
31 | ## $property.name | ||
![]() |
55.1 | 32 | #end |
![]() |
67.1 | 33 | $stringtool.capitalize( "fred from jupiter" ) |
![]() |
55.1 | 34 | |
![]() |
61.1 | 35 | $xwiki.getURL('.') |
![]() |
53.1 | 36 | {{/html}} |
![]() |
68.2 | 37 | |
![]() |
68.6 | 38 | $doc.display("blaat") |
![]() |
71.1 | 39 | |
![]() |
72.1 | 40 | $hasAdmin |
![]() |
47.1 | 41 | {{/velocity}} |
42 |