Changes for page test
Last modified by Jip-jan Alunkel on March 13, 19:02
From version 106.1
edited by Jip-jan Alunkel
on February 12, 16:28
on February 12, 16:28
Change comment:
Updated class property
To version 98.73
edited by Jip-jan Alunkel
on January 30, 19:34
on January 30, 19:34
Change comment:
Updated class property
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -2,16 +2,13 @@ 2 2 {{html wiki="true"}} 3 3 4 4 #set($dr = "bladibla.vinnymossel.hahahha.hohjoho") 5 -#set($drDoc = $xwiki.getDocument("test.minifytest")) 6 -$drDoc.getParent() 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($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}")) 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" ) 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 34 34 40 +#set ($xclass = $xobject.xWikiClass) 41 +#foreach ($property in $xclass.properties) 42 + $property.Name 43 + $property.value 44 +#end 45 +*# 46 + 35 35 $xwiki.getURL('.') 36 36 {{/html}} 37 37