Changes for page Macros
Last modified by Jip-jan Alunkel on April 15, 18:09
From version 2.209
edited by Jip-jan Alunkel
on July 14, 02:12
on July 14, 02:12
Change comment:
Update document after refactoring.
To version 2.204
edited by Jip-jan Alunkel
on July 14, 01:59
on July 14, 01:59
Change comment:
Update document after refactoring.
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -173,13 +173,15 @@ 173 173 #set($json = $O_elementData.select-json) 174 174 #else 175 175 #set($jsondoc = $xwiki.getDocument($O_elementData.select-json)) 176 - #set($jsoncontent = $jsontool.fromString($jsontool.serialize($jsondoc.getRenderedContent()))) 177 -##set($test = $jsontool.parse($jsoncontent)) 178 -$jsoncontent 179 -##$test.CET 180 -##set($assign = "$escapetool.getHash()set($map = $jsoncontent)") 181 -## #evaluate($assign) 182 -## #set($json = $map) 176 +## #set($discard = $jsondoc.setContentType('application/json')) 177 +## #set($json = $jsontool.serialize($jsondoc.getContent())) 178 + #set($jsoncontent = $jsontool.fromString($jsontool.serialize($jsondoc.getContent()))) 179 +#set($assign = "$escapetool.getHash()set($map = $jsoncontent)") 180 +#evaluate($assign) 181 + 182 +##$map.CET 183 +#set($json = $map) 184 + 183 183 #end 184 184 #foreach($key in $json.keySet()) 185 185 #if($O_elementData.select-json-spaces == "true")