Changes for page Macros
Last modified by Jip-jan Alunkel on April 15, 18:09
From version 2.162
edited by Jip-jan Alunkel
on July 13, 23:49
on July 13, 23:49
Change comment:
Update document after refactoring.
To version 2.172
edited by Jip-jan Alunkel
on July 14, 01:06
on July 14, 01:06
Change comment:
Update document after refactoring.
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -170,12 +170,21 @@ 170 170 #elseif($O_elementData.select-json) 171 171 #if($O_elementData.select-json.keySet()) 172 172 json 173 -#set($json = $O_elementData.select-json) 173 + #set($json = $O_elementData.select-json) 174 174 #else 175 - #set($json = $xwiki.getDocument($O_elementData.select-json).getContent()) 176 -$jsontool.serialize($json) 175 + #set ($queryString = $escapetool.url({ 176 + 'xpage': 'plain', 177 + 'outputSyntax': 'plain' 178 + })) 179 +## #set ($json = $xwiki.getURL($O_elementData.select-json, 'get', $queryString)) 180 + #set($json = $xwiki.getDocument($O_elementData.select-json)) 181 + #set($discard = $json.setContentType('application/json')) 182 + 183 + #set($json = $jsontool.serialize($json.getContent())) 184 +##$jsontool.serialize($json) 185 +##$jsontool.fromString($json) 177 177 $json 178 - not json187 +create json from page 179 179 180 180 #end 181 181 #foreach($key in $json.keySet())