By Chris Chase on Thursday, 27 September 2018
Posted in General
Likes 0
Views 451
Votes 0
Hello Support,

On this page on the front end. When i search for specific term or phrase the search pulls several articles but does not sort them by date. Just by relevant results.

In easyblog is there a setting or option for sorting the search results from oldest to newest and vice versa? I tried searching on the front end for this option and did not find one. I also checked the Global Settings of Joomla and Easyblog as well as the component itself in the admin panel and could not locate one. Please let me know Thanks!

Cheers!
Hey there,

By default the search result is sorted by likeness of the title, intro and content.

To modify this result head to Joomlafolder/administrator/components/com_easyblog/models/search.php at line 249 replace with this code


$query .= ' ORDER BY x.`publish_up` DESC, x.`score` DESC';


This query will sort it as the latest first and followed with likeness if the date is the same.
·
Thursday, 27 September 2018 11:21
·
0 Likes
·
0 Votes
·
0 Comments
·
Perfect, Thank you. This issue is resolved.

You can complete this ticket.
·
Monday, 01 October 2018 23:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for updating, glad that your issue is resolved now.
·
Tuesday, 02 October 2018 00:30
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post