Changes for page Macros

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

From version 2.101
edited by Jip-jan Alunkel
on June 28, 20:49
Change comment: Update document after refactoring.
To version 2.102
edited by Jip-jan Alunkel
on June 28, 22:29
Change comment: Update document after refactoring.

Summary

Details

Page properties
Content
... ... @@ -143,7 +143,7 @@
143 143   #set($spaceAbsRef = $space.replaceAll('([%_!])', '!$1'))
144 144   #set($query_add_xobj = $services.query.xwql("select space.name from XWikiSpace as space where space.parent = :space and space.name <> :nameExclude and space.name <> 'WebPreferences' order by space.name"))
145 145  
146 - ## Add XObjects to current child spaces so the spaces can be queried on the XObject to generate the select options.
146 + #* Add XObjects to current child spaces so the spaces can be queried on the XObject to generate the select options.
147 147   #set($result_add_xobj = $query_add_xobj.bindValue('space', $spaceAbsRef).bindValue('nameExclude', $nameExcludeRef).addFilter('unique').execute())
148 148   #foreach($item in $result_add_xobj)
149 149   #set($doc = $xwiki.getDocument("${space}.${item}.WebHome"))
... ... @@ -150,7 +150,7 @@
150 150   #set($rightXObj = $doc.getObject("assets.pagemaker.pagemakerClass", true))
151 151   #set($discard = $rightXObj.set('pmSpaceOrder', $foreach.count))
152 152   #set($discard = $doc.save())
153 - #end
153 + #end*#
154 154  
155 155   #set($spaceExcludeRef = $space.replaceAll('([%_!])', '!$1').concat(".${codespace}"))
156 156   #set($spaceLikeRef = $space.replaceAll('([%_!])', '!$1').concat('.%'))