CQ Asset share customization for sorting | Community
Skip to main content
New Participant
October 16, 2015
Solved

CQ Asset share customization for sorting

  • October 16, 2015
  • 2 replies
  • 1555 views

Hi All,

 

We want ability to add sorting mechanism for CQ Asset share page which will enable users to sort the assets listed on the page based on different attributes.

Any pointer on how to do this will be really appreciated.

 

Thanks and Regards,

Nitin

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

By default it uses data view lens which wont provide any sorting functionality.

option 1: Refer damadmin or siteadmin pages.

option 2: Use third party jquery libraries kie table sorter. 

2 replies

Accepted solution
October 16, 2015

By default it uses data view lens which wont provide any sorting functionality.

option 1: Refer damadmin or siteadmin pages.

option 2: Use third party jquery libraries kie table sorter. 

smacdonald2008
New Participant
October 16, 2015

You can sort assets stored in the JCR based on different props. For example, you could write an OSGi component that queries assets, sorts them based on a specific property, and then return a reset set to the page where they are displayed. Everything in CQ is just a resource. You can get at that resource using an API like JCR SQL/JCR API and sort it.