i want to show list of pages in carousel component on the basis of cq:lastReplicated in descending order | Community
Skip to main content
Level 2
October 16, 2015
Solved

i want to show list of pages in carousel component on the basis of cq:lastReplicated in descending order

i want to show list of pages in carousel component on the basis of cq:lastReplicated in descending order for that i have added a node nt:unstructured(e.g replicated) in options  and value is cq:lastReplicated but when i am selecting the option cq:lastReplicated it shows the list in Ascending order. It seems to be working fine with other options.

Please any one help me in this

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
October 16, 2015

Harsharya wrote...

i want to show list of pages in carousel component on the basis of cq:lastReplicated in descending order for that i have added a node nt:unstructured(e.g replicated) in options  and value is cq:lastReplicated but when i am selecting the option cq:lastReplicated it shows the list in Ascending order. It seems to be working fine with other options.

Please any one help me in this

 

You could create a Query Builder to view your content in a custom form. Predicate group gives you the ability to sort the data as you want:

map.put("orderby", "@jcr:content/cq:lastReplicated"); map.put("orderby.sort", "desc");

Usefull links:

http://wem.help.adobe.com/enterprise/en_US/10-0/wem/dam/customizing_and_extendingcq5dam/query_builder.html

http://www.slideshare.net/alexkli/cq5-querybuilder-adapttoberlin-2011

http://webinjava.blogspot.co.uk/2013/07/predicategroup-in-cq.html

Similar to:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__jyvp-hi_all_justpref.html

Thanks,

Peter

1 reply

Peter_Puzanovs
Peter_PuzanovsAccepted solution
New Participant
October 16, 2015

Harsharya wrote...

i want to show list of pages in carousel component on the basis of cq:lastReplicated in descending order for that i have added a node nt:unstructured(e.g replicated) in options  and value is cq:lastReplicated but when i am selecting the option cq:lastReplicated it shows the list in Ascending order. It seems to be working fine with other options.

Please any one help me in this

 

You could create a Query Builder to view your content in a custom form. Predicate group gives you the ability to sort the data as you want:

map.put("orderby", "@jcr:content/cq:lastReplicated"); map.put("orderby.sort", "desc");

Usefull links:

http://wem.help.adobe.com/enterprise/en_US/10-0/wem/dam/customizing_and_extendingcq5dam/query_builder.html

http://www.slideshare.net/alexkli/cq5-querybuilder-adapttoberlin-2011

http://webinjava.blogspot.co.uk/2013/07/predicategroup-in-cq.html

Similar to:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__jyvp-hi_all_justpref.html

Thanks,

Peter

Translate