Changes for page Documents Macro

From version 4.1
edited by Monika Leung
on 2025/07/12 16:23
Change comment: Migrated property [executionIsolated] from class [XWiki.WikiMacroClass]
To version 6.1
edited by Monika Leung
on 2026/04/03 16:00
Change comment: Install extension [org.xwiki.platform:xwiki-platform-index-ui/18.2.0]

Summary

Details

XWiki.WikiMacroClass[0]
Macro code
... ... @@ -22,7 +22,7 @@
22 22  #set ($propertyDescriptors = [])
23 23  #if ("$!services.like" != "")
24 24   ## We can't make it sortable or filterable right now since it's not stored in DB.
25 - #set ($discard = $propertyDescriptors.add({ 'id': '_likes', 'sortable': false, 'filterable': false }))
25 + #set ($discard = $propertyDescriptors.add({ 'id': '_likes', 'sortable': false, 'filterable': false, 'editable': false }))
26 26   #set ($discard = $properties.add('_likes'))
27 27  #end
28 28  #if(!$isGuest && $xcontext.macro.params.actions == "true")
... ... @@ -47,11 +47,16 @@
47 47   #set ($limit = $services.rendering.escape($xcontext.macro.params.count, 'xwiki/2.1'))
48 48  #end
49 49  #set ($propertiesStr = $services.rendering.escape($stringtool.join($properties, ','), 'xwiki/2.1'))
50 +#set ($filtersDeclared = $xcontext.macro.params.parameterNames.contains('filters'))
51 +#if ($filtersDeclared)
52 + #set ($filters = $services.rendering.escape($xcontext.macro.params.filters, 'xwiki/2.1'))
53 +#end
50 50  {{liveData
51 51   id="$livedataId"
52 52   properties="$propertiesStr"
53 53   source="liveTable"
54 54   sourceParameters="$escapetool.url($sourceParameters)"
59 + #if ($filtersDeclared) filters="$filters"#end
55 55   #if ($description != '')description="$description"#end
56 56   #if ($properties.contains('doc.location'))sort="doc.location"#end
57 57   #if ($limit != '')limit="$limit"#end
XWiki.WikiMacroParameterClass[8]
Parameter advanced
... ... @@ -1,0 +1,1 @@
1 +Yes
Parameter description
... ... @@ -1,0 +1,1 @@
1 +Provide a default filter to apply in the documents Live Data
Parameter mandatory
... ... @@ -1,0 +1,1 @@
1 +No
Parameter name
... ... @@ -1,0 +1,1 @@
1 +filters
Parameter type
... ... @@ -1,0 +1,1 @@
1 +Unknown

Interested in our testing services?

If you are interested and would like to receive more information, please send us an email and sign up for our newsletter to stay up-to-date.