Changes for page Spaces

Last modified by Micky Grillo on 2025/08/25 22:36

From version 4.1
edited by Micky Grillo
on 2025/08/25 22:36
Change comment: Migrated property [contentOrder] from class [XWiki.WikiMacroClass]
To version 1.1
edited by superadmin
on 2023/02/23 18:03
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-ui/15.0]

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.mgrillo
1 +XWiki.superadmin
XWiki.RequiredRightClass[0]
Level
... ... @@ -1,1 +1,0 @@
1 -edit
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -10,9 +10,10 @@
10 10   ## List spaces.
11 11   ##
12 12   #foreach($space in $spaceList)
13 - ## Display space only if the user has view right on space home
13 + ## Display space only if the user has view right on space home and if the space is not blacklisted.
14 + ## $blacklistedSpaces is set in xwikivars.vm
14 14   #set ($spaceHomeDocumentReference = $services.model.resolveSpace($space))
15 - #if($xwiki.hasAccessLevel('view', $services.model.serialize($spaceHomeDocumentReference)))
16 + #if($xwiki.hasAccessLevel('view', $services.model.serialize($spaceHomeDocumentReference)) && !$blacklistedSpaces.contains($space))
16 16   <li class="xitem xunderline xhighlight space">
17 17   <div class="xitemcontainer">
18 18   <div class="spSpaceName"><a href="$xwiki.getURL($spaceHomeDocumentReference)">${escapetool.xml($space)}</a></div>