Changes for page Macros
Last modified by Jip-jan Alunkel on April 15, 18:09
From version 2.10
edited by Jip-jan Alunkel
on March 24, 15:17
on March 24, 15:17
Change comment:
There is no comment for this version
To version 2.12
edited by Jip-jan Alunkel
on March 24, 15:19
on March 24, 15:19
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -27,10 +27,10 @@ 27 27 <option value="" disabled="" selected="" hidden="hidden">$services.localization.render(${elementDataObj.placeholder})</option> 28 28 #set ($spaceRef = $elementDataObj.space-reference) 29 29 #set ($spaceExcludeRef = "${spaceRef}.Code") 30 - #set($query = $services.query.xwql("from doc.object(AppWithinMinutes.MetadataClass) met where doc.space like :space order by met.dataSpaceName asc")) 31 - #set($query = $query.bindValue('space').literal("${spaceRef}.").anyChars() .query())32 - ###set($query = $query.bindValue('spaceExclude').literal("${spaceExcludeRef}"))33 - #set($results = $query.addFilter('unique').execute()) 30 + #set($query = $services.query.xwql("from doc.object(AppWithinMinutes.MetadataClass) met where doc.space like :space and doc.space <> :spaceExclude order by met.dataSpaceName asc")) 31 + #set($query = $query.bindValue('space').literal("${spaceRef}.").anyChars()) 32 + #set($query = $query.bindValue('spaceExclude').literal("${spaceExcludeRef}")) 33 + #set($results = $query.query().addFilter('unique').execute()) 34 34 #foreach ($item in $results) 35 35 #set ($document = $xwiki.getDocument($item)) 36 36 <option value="$document.space">$document.getTitle()</option>