Changes for page Macros

Last modified by Jip-jan Alunkel on April 15, 18:09

From version 2.188
edited by Jip-jan Alunkel
on July 14, 01:33
Change comment: Update document after refactoring.
To version 2.192
edited by Jip-jan Alunkel
on July 14, 01:37
Change comment: Update document after refactoring.

Summary

Details

Page properties
Content
... ... @@ -171,14 +171,17 @@
171 171   #if($O_elementData.select-json.keySet())
172 172   #set($json = $O_elementData.select-json)
173 173   #else
174 - #set($jsonpage = $xwiki.getDocument($O_elementData.select-json))
175 - #set($discard = $jsonpage.setContentType('application/json'))
176 - #set($jsoncontent = $jsontool.serialize($jsonpage.getContent()))
177 - #set($j = $jsontool.fromString($jsoncontent))
178 -#set($assign = "$escapetool.getHash()set($json = $j)")
174 + #set($json = $xwiki.getDocument($O_elementData.select-json))
175 + #set($discard = $json.setContentType('application/json'))
176 +
177 + #set($json = $jsontool.serialize($json.getContent()))
178 +$json.class.name
179 +##$jsontool.serialize($json)
180 + #set($j = $jsontool.fromString($json))
181 +#set($assign = "$escapetool.getHash()set($map = $j)")
179 179  #evaluate($assign)
180 180  
181 -$json.CET
184 +$map.CET
182 182  create json from page
183 183  
184 184   #end