Changes for page Space Index

Last modified by Simon Urli on 2023/05/25 15:14

<
From version < 6.1 >
edited by Thomas Mortagne
on 2012/03/08 13:31
To version < 9.1 >
edited by Marius Dumitru Florea
on 2013/03/23 13:16
>
Change comment: Import

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -xwiki:XWiki.ThomasMortagne
1 +xwiki:XWiki.mflorea
Hidden
... ... @@ -1,1 +1,1 @@
1 -false
1 +true
Content
... ... @@ -2,6 +2,6 @@
2 2  #if("$!request.space" != "") #set($space=$request.space) #else #set($space = $doc.space) #end
3 3  $msg.get('platform.index.spaceIndexDescription', [$space])
4 4  
5 -{{documents space="$space" id="spaceindex"/}}
5 +{{documents space="$space.replaceAll('["~]', '~$0')" id="spaceindex"/}}
6 6  {{/velocity}}
7 7  
XWiki.WikiMacroClass[0]
Macro code
... ... @@ -6,7 +6,7 @@
6 6   ## 100 documents displayed by default if no value is specified
7 7   #set ($limit = '100')
8 8   #end
9 - #set ($limit = $util.parseInt($limit))
9 + #set ($limit = $mathtool.toInteger($limit))
10 10   ## get the space to display the documents for
11 11   #set ($spaceParam = $doc.space)
12 12   #set ($spaceMacroParam = $xcontext.macro.params.get('space'))
... ... @@ -25,7 +25,7 @@
25 25   #if ($remaining > 0)
26 26   (% class="documentListMore" %) (((
27 27   // $msg.get('xe.dashboard.space.remainingDocumentsInSpace', [$remaining, $spaceParam])
28 - [[$msg.get('xe.dashboard.space.visitSpaceIndex')>>Main.SpaceIndex?space=$spaceParam]] //
28 + [[$msg.get('xe.dashboard.space.visitSpaceIndex')>>Main.SpaceIndex?space=${escapetool.url($spaceParam)}]] //
29 29   )))
30 30   #end
31 31   #end

Get Connected