Save the sort settings in the list view on the author | Community
Skip to main content
Level 4
December 31, 2020
Solved

Save the sort settings in the list view on the author

  • December 31, 2020
  • 1 reply
  • 1395 views

Hi Experts,

 

We have a requirement to save the sort settings in the list view on the author (as in aatched screen) so that a user who frequently uses the same sort can return to those settings. For example, if a user sorts according to "size," the user will see that sort as a default when they return to list view. The saved sort can be per-user or per user groups

Can you help with how we can do t in AEM author?

 

Thanks

S~

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by shelly-goel

@sameryadav 

There wouldn't be any settings for default sort and customization would be needed. If you create a sling:OrderedFolder, then it will have default sort (ascending) for assets under it based on name/ title of the asset but not on size.

For default sort on size, you could create a sling filter to intercept the request and then sort based on size field. Below link shows default sorting on node name (you can modify it for size)

http://experience-aem.blogspot.com/2018/11/aem-6420-add-sort-by-name-type-in-assets-list-view-default-sort-name.html

You can refer to below post as well which provides another overlay option: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-assets-default-sort/qaq-p/314218

 

1 reply

shelly-goel
Adobe Employee
shelly-goelAdobe EmployeeAccepted solution
Adobe Employee
January 1, 2021

@sameryadav 

There wouldn't be any settings for default sort and customization would be needed. If you create a sling:OrderedFolder, then it will have default sort (ascending) for assets under it based on name/ title of the asset but not on size.

For default sort on size, you could create a sling filter to intercept the request and then sort based on size field. Below link shows default sorting on node name (you can modify it for size)

http://experience-aem.blogspot.com/2018/11/aem-6420-add-sort-by-name-type-in-assets-list-view-default-sort-name.html

You can refer to below post as well which provides another overlay option: https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/aem-assets-default-sort/qaq-p/314218

 

kautuk_sahni
Community Manager
Community Manager
January 8, 2021
Very informative reply.
Kautuk Sahni