There are 3 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-5deb4930-e17a-4d05-ba77-51c7a24c43b3 XWIKI-21155 Closed

Allow sorting by specified field for Document Tree macro

 
View issue   ยท   Add comment
 

3 updates

 
cid:jira-generated-image-avatar-cc1ee53f-c05f-49b6-8d99-8c9aac294fd3 Changes by Marius Dumitru Florea on 17/Jan/25 13:45
 
Resolution: Fixed
Tests: Unit,Integration
Status: In Progress Closed
 
 

1 comment

 
cid:jira-generated-image-avatar-cc1ee53f-c05f-49b6-8d99-8c9aac294fd3 Marius Dumitru Florea on 17/Jan/25 13:45
 

I added the sortDocumentsBy parameter to the documentTree macro and the sort parameter to the children macro. The supported sort fields are: name, title, date and creationDate. You can optionally specify the sort order:

{{documentTree sortDocumentsBy="title:desc" /}}

{{children sort="date" /}}