Changes for page test
Last modified by Jip-jan Alunkel on March 13, 19:02
From version 83.1
edited by Jip-jan Alunkel
on January 26, 21:24
on January 26, 21:24
Change comment:
Updated class property
To version 70.1
edited by Jip-jan Alunkel
on August 19, 20:07
on August 19, 20:07
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,34 +1,12 @@ 1 1 {{velocity}} 2 2 {{html wiki="true"}} 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 == 1) 13 - #set($comma = "") 14 - #else 15 - #set($comma = ", ") 16 - #end 17 - #set($chain = "${chain}${comma}'${space}'") 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()) 18 18 #end 19 -$chain 20 20 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 - 32 32 #set ($doc=$xwiki.getDocument("cases.ear.ears fell off while biking")) 33 33 #set ($xobject = $doc.getObject('cases.Code.casesClass')) 34 34 #set ($xclass = $xobject.xWikiClass) ... ... @@ -57,7 +57,5 @@ 57 57 {{/html}} 58 58 59 59 $doc.display("blaat") 60 - 61 -$hasAdmin 62 62 {{/velocity}} 63 63