Changes for page Powered By Section

Last modified by Thomas Mortagne on 2024/04/10

From version 13.1
edited by Ecaterina Moraru (Valica)
on 2016/05/24
Change comment: Imported from XAR
To version 14.1
edited by Ecaterina Moraru (Valica)
on 2016/05/24
Change comment: There is no comment for this version

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -21,7 +21,7 @@
21 21   #setVariable ("$result" "$referenceSheet.getExternalURL('download')/$escapetool.url($referenceSheet.attachmentList.get(0).filename)?$imgWidth&$imgHeight")
22 22   #end
23 23  #end
24 -#set($referencesList = $xwiki.searchDocuments(", BaseObject as reference where doc.fullName=reference.name and reference.className='XWiki.ReferenceClass' and doc.fullName<>'XWiki.ReferenceClassTemplate' order by doc.title"))
24 +#set($referencesList = $services.query.xwql("where doc.object(XWiki.ReferenceClass).recommended = 1").execute())
25 25  #if($referencesList.size() > 0)
26 26   #set ($randomSeed = $mathtool.random(0, $referencesList.size()))
27 27   #set($randomReferenceName = $referencesList.get($randomSeed))

Get Connected