Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Order in SearchResultsPortlet in Liferay 7.2
Hi,
By default i've seen that the SearchResultsPortlet shows the results in created Date ascending order, the first JournalArticle created is the first content shown.
I need to display those results in a inverse order, the last journalArticles created have to appear in the first place.
I've searched above for the configuration of the portlet and i didn´t see something to change the order in which the results are shown.Is there any configuration to setup the journalArticle order in that portlet or in other case i have to develop and extension of the core?
Kind regards,
Iñigo
By default i've seen that the SearchResultsPortlet shows the results in created Date ascending order, the first JournalArticle created is the first content shown.
I need to display those results in a inverse order, the last journalArticles created have to appear in the first place.
I've searched above for the configuration of the portlet and i didn´t see something to change the order in which the results are shown.Is there any configuration to setup the journalArticle order in that portlet or in other case i have to develop and extension of the core?
Kind regards,
Iñigo
Hi ,
There is Sort Portlet for Search which can be used for sorting the result you can refer below
https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/sorting-search-results-with-the-sort-widget
There is Sort Portlet for Search which can be used for sorting the result you can refer below
https://portal.liferay.dev/docs/7-2/user/-/knowledge_base/u/sorting-search-results-with-the-sort-widget
Hi Mohammed,
Thanks for your answer.
This portlet sort my results, but, it is possible to show the results sorted when the page is loaded?.
Although i configure the field created in the first place of the portlet, the results are shown unsorted.
Thanks
Thanks for your answer.
This portlet sort my results, but, it is possible to show the results sorted when the page is loaded?.
Although i configure the field created in the first place of the portlet, the results are shown unsorted.
Thanks
Any other solution for this problem?
I have seen that SortPortlet put the following parameter "sort=createDate-" in the URL to sort the results, but i need those results are shown sorted in the render of the page.It is possible to set this parameter in the page render, before the page was loaded?
Kind regards,
I have seen that SortPortlet put the following parameter "sort=createDate-" in the URL to sort the results, but i need those results are shown sorted in the render of the page.It is possible to set this parameter in the page render, before the page was loaded?
Kind regards,
HI,
I also need same solution in Liferay 7.0 version.
In Liferay 7 there is no sortportlet.
I need to display results in a inverse order, the last created document should appear in the first place.
how to achieve in Liferay 7.0 version.
Copyright © 2025 Liferay, Inc
• Privacy Policy
Powered by Liferay™