Changes for page test
Last modified by Jip-jan Alunkel on March 13, 19:02
From version 87.1
edited by Jip-jan Alunkel
on January 27, 18:54
on January 27, 18:54
Change comment:
Updated class property
To version 78.1
edited by Jip-jan Alunkel
on January 26, 16:44
on January 26, 16:44
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,24 +1,14 @@ 1 1 {{velocity}} 2 2 {{html wiki="true"}} 3 3 4 -#set($dr = "bladibla.vinnymossel .hahahha.hohjoho")4 +#set($dr = "bladibla.vinnymossel") 5 5 #set($docrefArray = $dr.split("\.")) 6 6 ##set($drSpaceA = $docrefArray[0]) 7 7 ##set($drSpaceB = $docrefArray[1]) 8 +#set($docref = $services.model.createDocumentReference($xcontext.mainWikiName, ['bladibla', 'vinnymossel'], 'WebHome')) 8 8 9 -#set($chain = "") 10 -#foreach($space in $docrefArray) 11 - #if($foreach.count == 1) 12 - #set($comma = "") 13 - #else 14 - #set($comma = ", ") 15 - #end 16 - #set($chain = "${chain}${comma}'${space}'") 17 -#end 18 -#set($chain = "[${chain}]") 19 -#set($docref = $services.model.createDocumentReference($xcontext.mainWikiName, $chain, 'WebHome')) 20 - 21 21 $docref 11 +$docrefArray 22 22 23 23 24 24 ... ... @@ -25,6 +25,9 @@ 25 25 26 26 27 27 18 + 19 + 20 + 28 28 ##set($obj = $doc.getObject('test.WebHome')) 29 29 ##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass 30 30 $doc.display("blaat")