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.2
edited by Ecaterina Moraru (Valica)
on 2017/08/30
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -1,5 +1,6 @@
1 -(% class='poweredByContainer' %)
1 +(% class="poweredByContainer" %)
2 2  (((
3 -== [[Powered by XWiki>>xwiki:References.WebHome||class='latestPostsHeader' title='See more references']] ==
3 +== [[Powered by XWiki>>xwiki:References.WebHome||class="latestPostsHeader" title="See more references"]] ==
4 +
4 4  {{poweredBy/}}
5 5  )))
XWiki.StyleSheetExtension[0]
Code
... ... @@ -17,6 +17,7 @@
17 17  .poweredBy .author {
18 18   color: #888;
19 19   font-size: .85em;
20 + font-weight: 100;
20 20  }
21 21  
22 22  .poweredBy .author a {
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