Changes for page Documents Macro
Last modified by Mark Kohlmann on 2024/07/26 08:05
From version 4.1
edited by Mark Kohlmann
on 2020/04/03 03:57
on 2020/04/03 03:57
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-index-ui/12.2]
To version 5.1
edited by Mark Kohlmann
on 2024/07/02 15:45
on 2024/07/02 15:45
Change comment:
Install extension [org.xwiki.platform:xwiki-platform-index-ui/12.9]
Summary
-
Page properties (1 modified, 0 added, 0 removed)
-
Objects (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. MarkKohlmann1 +XWiki.mark\.kohlmann@chiefintegrations\.com
- XWiki.WikiMacroClass[0]
-
- Macro code
-
... ... @@ -40,6 +40,14 @@ 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 43 43 #if ($collist.contains('doc.location')) 44 44 #set ($discard = $options.put('selectedColumn','doc.location')) 45 45 #end