Changes for page test
Last modified by Jip-jan Alunkel on March 13, 19:02
From version 99.1
edited by Jip-jan Alunkel
on February 12, 16:23
on February 12, 16:23
Change comment:
Updated class property
To version 98.75
edited by Jip-jan Alunkel
on January 30, 19:35
on January 30, 19:35
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,16 +2,14 @@ 2 2 {{html wiki="true"}} 3 3 4 4 #set($dr = "bladibla.vinnymossel.hahahha.hohjoho") 5 -#set($drDoc = $xwiki.getDocument($dr)) 6 - 7 -#set($docrefArray = []) 8 -#set($lastIndex = $dr.lastIndexOf('.')) 9 -#set($docrefSemafore = $dr.substring(0, $lastIndex).split("\.")) 10 -#foreach($elem in $docrefSemafore) 11 - #set($discard = $docrefArray.add("${elem}")) 12 -#end 13 -#set($last = "$dr.substring($lastIndex + 1)") 14 -#set($xdocref = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArray, $last)) 5 + #set($docrefArray = []) 6 + #set($lastIndex = $dr.lastIndexOf('.')) 7 + #set($docrefSemafore = $dr.substring(0, $lastIndex).split("\.")) 8 + #foreach($elem in $docrefSemafore) 9 + #set($discard = $docrefArray.add("${elem}")) 10 + #end 11 + #set($last = "$docref.substring($lastIndex + 1)") 12 + #set($xdocref = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArray, "${last}")) 15 15 <br /> 16 16 parentb: $xdocref 17 17 <br /> ... ... @@ -31,7 +31,22 @@ 31 31 ## $property.name 32 32 #end 33 33 $stringtool.capitalize( "fred from jupiter" ) 32 +#* 33 +#set ($xdoc=$xwiki.getDocument($Formulier)) 34 +#set ($xobject = $xdoc.getObject('Main.Werkwijze.Formulieren.Code.FormulierenClass')) 35 +#set ($xclass = $xobject.xWikiClass) 36 +#foreach ($property in $xclass.properties) 37 + $property.Name 38 + $property.value 39 +#end 34 34 41 +#set ($xclass = $xobject.xWikiClass) 42 +#foreach ($property in $xclass.properties) 43 + $property.Name 44 + $property.value 45 +#end 46 +*# 47 + 35 35 $xwiki.getURL('.') 36 36 {{/html}} 37 37