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
Solved! Go to Solution.
Views
Replies
Total Likes
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://www.slideshare.net/alexkli/cq5-querybuilder-adapttoberlin-2011
http://webinjava.blogspot.co.uk/2013/07/predicategroup-in-cq.html
Similar to:
Thanks,
Peter
Views
Replies
Total Likes
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://www.slideshare.net/alexkli/cq5-querybuilder-adapttoberlin-2011
http://webinjava.blogspot.co.uk/2013/07/predicategroup-in-cq.html
Similar to:
Thanks,
Peter
Views
Replies
Total Likes
Views
Likes
Replies