Changes for page Documents Macro

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

From version 13.1
edited by Ludovic Dubost
on 2021/11/08 18:28
Change comment: Migrated property [priority] from class [XWiki.WikiMacroClass]
To version 8.1
edited by Ludovic Dubost
on 2018/11/30 15:23
Change comment: Migrated property [type] from class [XWiki.WikiMacroParameterClass]

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' },
11 + 'doc.title' : { 'size' : 30, 'link' : 'view', 'filterable': false, 'sortable': false },
12 12   'doc.location' : { 'html': true },
13 13   'doc.fullName' : { 'size' : 30, 'link' : 'view' },
14 14   'doc.name' : { 'size' : 30, 'link' : 'view' },
... ... @@ -40,17 +40,6 @@
40 40   'sortable': false
41 41   }))
42 42  #end
43 -#if ("$!services.like" != "")
44 - #set($discard = $collist.add('_likes'))
45 - ## We can't make it sortable or filterable right now since it's not stored in DB.
46 - #set($discard = $colprops.put('_likes', {
47 - 'filterable': false,
48 - 'sortable': false
49 - }))
50 -#end
51 -#if ($collist.contains('doc.location'))
52 - #set ($discard = $options.put('selectedColumn','doc.location'))
53 -#end
54 54  #if ("$!xcontext.macro.params.id" != "")
55 55   #set ($livetableId = $xcontext.macro.params.id)
56 56  #else