Changes for page test

Last modified by Jip-jan Alunkel on March 13, 19:02

From version 70.1
edited by Jip-jan Alunkel
on August 19, 20:07
Change comment: Updated class property
To version 82.1
edited by Jip-jan Alunkel
on January 26, 21:23
Change comment: Updated class property

Summary

Details

Page properties
Content
... ... @@ -1,12 +1,34 @@
1 1  {{velocity}}
2 2  {{html wiki="true"}}
3 -#set($obj = $doc.getObject('test.WebHome'))
4 -#set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
5 -#foreach($prop in $class.properties) ## go through all properties
6 - ${prop.prettyName}
7 - $doc.display($prop.getName())
3 +
4 +#set($dr = "bladibla.vinnymossel")
5 +#set($docrefArray = $dr.split("\."))
6 +##set($drSpaceA = $docrefArray[0])
7 +##set($drSpaceB = $docrefArray[1])
8 +#set($docref = $services.model.createDocumentReference($xcontext.mainWikiName, ['bladibla', 'vinnymossel'], 'WebHome'))
9 +
10 +#set($chain = "")
11 +#foreach($space in $docrefArray)
12 + #if($foreach.count == 0)
13 + #set($comma = "")
14 + #else
15 + #set($comma = ", ")
16 + #end
17 + #set($chain = "${chain}${comma}'${space}'")
8 8  #end
19 +$chain
9 9  
21 +
22 +
23 +
24 +
25 +
26 +
27 +
28 +##set($obj = $doc.getObject('test.WebHome'))
29 +##set($class = $obj.xWikiClass) ## access the class object representing SomeSpace.SomeClass
30 +$doc.display("blaat")
31 +
10 10  #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking"))
11 11  #set ($xobject = $doc.getObject('cases.Code.casesClass'))
12 12  #set ($xclass = $xobject.xWikiClass)
... ... @@ -35,5 +35,7 @@
35 35  {{/html}}
36 36  
37 37  $doc.display("blaat")
60 +
61 +$hasAdmin
38 38  {{/velocity}}
39 39