Changes for page Documents Macro

Last modified by Ludovic Dubost on 2024/07/22 15:50

From version 7.1
edited by Ludovic Dubost
on 2018/07/01 11:40
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-ui/10.5]
To version 10.1
edited by Ludovic Dubost
on 2018/12/09 12:24
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-ui/10.10]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -8,7 +8,7 @@
8 8   #set($collist = ['doc.title', 'doc.location', 'doc.date', 'doc.author'])
9 9  #end
10 10  #set($colprops = {
11 - 'doc.title' : { 'size' : 30, 'link' : 'view', 'filterable': false, 'sortable': false },
11 + 'doc.title' : { 'size' : 30, 'link' : 'view' },
12 12   'doc.location' : { 'html': true },
13 13   'doc.fullName' : { 'size' : 30, 'link' : 'view' },
14 14   'doc.name' : { 'size' : 30, 'link' : 'view' },
... ... @@ -40,6 +40,9 @@
40 40   'sortable': false
41 41   }))
42 42  #end
43 +#if ($collist.contains('doc.location'))
44 + #set ($discard = $options.put('selectedColumn','doc.location'))
45 +#end
43 43  #if ("$!xcontext.macro.params.id" != "")
44 44   #set ($livetableId = $xcontext.macro.params.id)
45 45  #else