This issue has been created
There are 3 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-93b00bf2-00a5-43a5-8e51-f2690d996934 XWIKI-23116 Open

Documents macro should not have the likes column when it's not asked

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-1281dc9f-1e57-4390-9187-eb6a51123b5a Vincent Massol created this issue on 16/Apr/25 10:20
 
Summary: Documents macro should not have the likes column when it's not asked
Issue Type: cid:jira-generated-image-avatar-93b00bf2-00a5-43a5-8e51-f2690d996934 Bug
Affects Versions: 12.7-rc-1
Assignee: Unassigned
Components: Index
Created: 16/Apr/25 10:20
Priority: cid:jira-generated-image-static-major-3517a29c-f590-4a09-97b6-723dc5caad32 Major
Reporter: Vincent Massol
Description:

This is a "regression" from XWIKI-17508. Before that issue we were able to control the documents macro columns by using the "columns" parameter. After XWIKI-17508 it's no longer possible. For example the following:

{{documents location=".PageEditing." columns="doc.title"/}}

is supposed to have one 1 column (the title) but it doesn't work and the like column is displayed too.

See also https://extensions.xwiki.org/xwiki/bin/view/Extension/Documents%20Macro

I'd propose that:

  • We introduce a "like" column key in the "columns" parameter, when the likes column is supposed to be displayed
  • That it's off by default (as it's not a main use case)
 
 

3 updates

 
cid:jira-generated-image-avatar-1281dc9f-1e57-4390-9187-eb6a51123b5a Changes by Vincent Massol on 16/Apr/25 10:22
 
Description: This is a "regression" from XWIKI-17508. Before that issue we were able to control the documents macro columns by using the "columns" parameter. After XWIKI-17508 it's no longer possible. For example the following:

{noformat}
{{documents location=".PageEditing." columns="doc.title"/}}
{noformat}

is supposed to have one 1 column (the title) but it doesn't work and the like column is displayed too.

!Screenshot 2025-04-16 at 10.21.26.png|thumbnail!

When not logged in:

!Screenshot 2025-04-16 at 10.23.29.png|thumbnail!

See also https://extensions.xwiki.org/xwiki/bin/view/Extension/Documents%20Macro

I'd propose that:
* We introduce a "like" column key in the "columns" parameter, when the likes column is supposed to be displayed
* That it's off by default (as it's not a main use case)

BTW I also propose to do the same for the "actions" columns with an "actions" column.
Attachment: Screenshot 2025-04-16 at 10.21.26.png
Attachment: Screenshot 2025-04-16 at 10.23.29.png