Expand my Community achievements bar.

SOLVED

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

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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_builde...

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-manage...

Thanks,

Peter

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

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_builde...

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-manage...

Thanks,

Peter