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