Changes for page Macros
Last modified by Jip-jan Alunkel on April 15, 18:09
From version 2.197
edited by Jip-jan Alunkel
on July 14, 01:45
on July 14, 01:45
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
-
... ... @@ -168,18 +168,19 @@ 168 168 <option value="$doc.space">$doc.getTitle()</option> 169 169 #end 170 170 #elseif($O_elementData.select-json) 171 + #set($json = {}) 171 171 #if($O_elementData.select-json.keySet()) 172 172 #set($json = $O_elementData.select-json) 173 173 #else 174 174 #set($jsondoc = $xwiki.getDocument($O_elementData.select-json)) 175 - #set($discard = $jsondoc.setContentType('application/json')) 176 - #set($json = $jsontool.serialize($jsondoc.getContent())) 177 - #set($j = $jsontool.fromString($json)) 178 -#set($assign = "$escapetool.getHash()set($map = $j)") 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)") 179 179 #evaluate($assign) 180 180 181 -$map.CET 182 - createjsonfrompage182 +##$map.CET 183 +#set($json = $map) 183 183 184 184 #end 185 185 #foreach($key in $json.keySet())