Skip to main content
Level 2
Oct 16, 2015 2:28 AM UTC
Solved

CQ Asset share customization for sorting

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.
Accepted solution
Oct 16, 2015 2:28 AM UTC

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

smacdonald2008
Level 10
Oct 16, 2015 2:28 AM UTC

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.

Translate
Accepted solution
Oct 16, 2015 2:28 AM UTC

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. 

Translate