Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Save the sort settings in the list view on the author

sameryadav
Level 4
Level 4

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~

1 Accepted Solution
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@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-defaul...

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/qa...

 

View solution in original post

2 Replies
shelly-goel
Correct answer by
Community Advisor
Community Advisor

@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-defaul...

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/qa...

 

View solution in original post