Wiki-Quellcode von test

Version 98.74 von Jip-jan Alunkel am Januar 30, 19:35

Zeige letzte Bearbeiter
1 {{velocity}}
2 {{html wiki="true"}}
3
4 #set($dr = "bladibla.vinnymossel.hahahha.hohjoho")
5 #set($lastIndex = $dr.lastIndexOf('.'))
6 #set($docrefSemafore = $dr.substring(0, $lastIndex).split("\."))
7 #foreach($elem in $docrefSemafore)
8 #set($discard = $docrefArray.add("${elem}"))
9 #end
10 #set($last = "$docref.substring($lastIndex + 1)")
11 #set($xdocref = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArray, "${last}"))
12 <br />
13 parentb: $xdocref
14 <br />
15 #set($parentTitleb = $parentReferenceb.getName())
16 parentTitleB: $parentTitleb
17
18
19 ##set($obj = $doc.getObject('test.WebHome'))
20 ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
21 $doc.display("blaat")
22
23 #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking"))
24 #set ($xobject = $doc.getObject('cases.Code.casesClass'))
25 #set ($xclass = $xobject.xWikiClass)
26 #foreach ($property in $xclass.properties)
27 $xobject.getProperty($property.name).value
28 ## $property.name
29 #end
30 $stringtool.capitalize( "fred from jupiter" )
31 #*
32 #set ($xdoc=$xwiki.getDocument($Formulier))
33 #set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass'))
34 #set ($xclass = $xobject.xWikiClass)
35 #foreach ($property in $xclass.properties)
36 $property.Name
37 $property.value
38 #end
39
40 #set ($xclass = $xobject.xWikiClass)
41 #foreach ($property in $xclass.properties)
42 $property.Name
43 $property.value
44 #end
45 *#
46
47 $xwiki.getURL('.')
48 {{/html}}
49
50 $doc.display("blaat")
51
52 $hasAdmin
53 {{/velocity}}