Changes for page test
Last modified by Jip-jan Alunkel on March 13, 19:02
From version 98.78
edited by Jip-jan Alunkel
on January 30, 19:40
on January 30, 19:40
Change comment:
Updated class property
To version 100.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,14 +2,16 @@ 2 2 {{html wiki="true"}} 3 3 4 4 #set($dr = "bladibla.vinnymossel.hahahha.hohjoho") 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 = "$dr.substring($lastIndex + 1)") 12 - #set($xdocref = $services.model.createDocumentReference($xcontext.mainWikiName, $docrefArray, $last)) 5 +#set($drDoc = $xwiki.getDocument($dr)) 6 +$drDoc.parent 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)) 13 13 <br /> 14 14 parentb: $xdocref 15 15 <br /> ... ... @@ -29,22 +29,7 @@ 29 29 ## $property.name 30 30 #end 31 31 $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 40 40 41 -#set ($xclass = $xobject.xWikiClass) 42 -#foreach ($property in $xclass.properties) 43 - $property.Name 44 - $property.value 45 -#end 46 -*# 47 - 48 48 $xwiki.getURL('.') 49 49 {{/html}} 50 50