Wiki source code of test
Version 112.1 by Jip-jan Alunkel on February 12, 16:38
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | {{velocity}} | ||
2 | {{html wiki="true"}} | ||
3 | |||
4 | #set($dr = "bladibla.vinnymossel.hahahha.hohjoho") | ||
5 | #set($drDoc = $xwiki.getDocument("cases.back.Asdfasdf asdff")) | ||
6 | $page.documentReference()<br /> | ||
7 | $drDoc.getTitle()<br /> | ||
8 | $drDoc.getParent()<br /> | ||
9 | $drDoc.getSpace() | ||
10 | |||
11 | #set($docrefArray = []) | ||
12 | #set($lastIndex = $dr.lastIndexOf('.')) | ||
13 | #set($docrefSemafore = $dr.substring(0, $lastIndex).split("\.")) | ||
14 | #foreach($elem in $docrefSemafore) | ||
15 | #set($discard = $docrefArray.add("${elem}")) | ||
16 | #end | ||
17 | #set($last = "$dr.substring($lastIndex + 1)") | ||
18 | #set($xdocref = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArray, $last)) | ||
19 | <br /> | ||
20 | parentb: $xdocref | ||
21 | <br /> | ||
22 | #set($parentTitleb = $parentReferenceb.getName()) | ||
23 | parentTitleB: $parentTitleb | ||
24 | |||
25 | |||
26 | ##set($obj = $doc.getObject('test.WebHome')) | ||
27 | ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass | ||
28 | $doc.display("blaat") | ||
29 | |||
30 | #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) | ||
31 | #set ($xobject = $doc.getObject('cases.Code.casesClass')) | ||
32 | #set ($xclass = $xobject.xWikiClass) | ||
33 | #foreach ($property in $xclass.properties) | ||
34 | $xobject.getProperty($property.name).value | ||
35 | ## $property.name | ||
36 | #end | ||
37 | $stringtool.capitalize( "fred from jupiter" ) | ||
38 | |||
39 | $xwiki.getURL('.') | ||
40 | {{/html}} | ||
41 | |||
42 | $doc.display("blaat") | ||
43 | |||
44 | $hasAdmin | ||
45 | {{/velocity}} |