Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

How to search recently modified pages in AEM5.6 using OOTB search component

Avatar

Former Community Member

Using OOTB search component i want to display the latest modified pages , desc order, i.e last modified page should display first. Any suggestion will be of great help.

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi,
i would try to create my own search component for this instead since the order in the OOB component is of relevance.
I have written some answers about customization and making your own search jsp page. See these links:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Basically you just need to modify the ordering by criteria in those examples to suite your needs. Trying with the querybuilder api in the debug mode on your author is a great way to test everything firs (http://<server>:<port>/libs/cq/search/content/querydebug.html)

Good Luck
/Johan

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

Hi,
i would try to create my own search component for this instead since the order in the OOB component is of relevance.
I have written some answers about customization and making your own search jsp page. See these links:

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Basically you just need to modify the ordering by criteria in those examples to suite your needs. Trying with the querybuilder api in the debug mode on your author is a great way to test everything firs (http://<server>:<port>/libs/cq/search/content/querydebug.html)

Good Luck
/Johan

Avatar

Level 1

Hi,

 You can use OOTB sorting component. "Sort by date" will show latest result first.

Let me know if it works.

 

Thanks,