Changes for page Space Index

on 2024-02-29 06:56


on 2022-08-02 10:47
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1,20 +1,10 @@ 1 1 {{velocity}} 2 -#if("$!request.space" != "") 3 - #set($space=$request.space) 4 -#else 5 - #set($space = $doc.space) 6 -#end 2 +#if("$!request.space" != "") #set($space=$request.space) #else #set($space = $doc.space) #end 3 +$services.localization.render('platform.index.spaceIndexDescription', [$space]) 7 7 ## Since we display the space index, we do not display page titles and locations, but the old columns name and space 8 8 ## (old behavior consistent with this old macro)... 9 9 10 -#set ($description = $services.localization.render('platform.index.spaceIndexDescription', [$space])) 11 -#set ($description = $services.rendering.escape($description, 'xwiki/2.1')) 12 -{{documents 13 - space="$services.rendering.escape($space, 'xwiki/2.1')" 14 - id="spaceindex" 15 - columns="doc.name,doc.space,doc.date,doc.author" 16 - description="$description" 17 -/}} 7 +{{documents space="$space.replaceAll('["~]', '~$0')" id="spaceindex" columns="doc.name, doc.space, doc.date, doc.author"/}} 18 18 #set($docextras=[]) 19 19 {{/velocity}} 20 20
- XWiki.WikiMacroClass[0]
-
- Cached
-
... ... @@ -1,1 +1,0 @@ 1 -No - Asynchronous rendering
-
... ... @@ -1,1 +1,0 @@ 1 -No - Default categories
-
... ... @@ -1,1 +1,0 @@ 1 -Deprecated - Default category
-
... ... @@ -1,0 +1,1 @@ 1 +Deprecated