By mandoju on Tuesday, 30 June 2015
Replies 5
Likes 0
Views 2.1K
Votes 0
Is possible to change the event order on search ? It's displaying the oldest to newest, and i wanted it to display from the newest to the oldest (anti-chronological).

Thanks
Is this in the Joomla search or the JEvents internal search

By newest do you mean the order or creation or the order of event start date?
·
Wednesday, 01 July 2015 10:07
·
0 Likes
·
0 Votes
·
0 Comments
·
In the JEvents internal search, i want the search order with event start date from the newest to oldest. But i can't find the file to change the search parameters.
·
Thursday, 02 July 2015 12:51
·
0 Likes
·
0 Votes
·
0 Comments
·
I'm sorry 'newest' = nearest to now, 'oldest' = furthest into the future or 'oldest' = furthest into the past ?
·
Thursday, 02 July 2015 15:00
·
0 Likes
·
0 Votes
·
0 Comments
·
sorry, like from the future (the first one of the list) to the past (the last one of the list) (anti-cronological) using start date as parameter.
Like the actual search, but invert the order.
·
Thursday, 02 July 2015 19:27
·
0 Likes
·
0 Votes
·
0 Comments
·
Lets say you are using the Flat layout then copy the file components/com_jevents/views/flat/search/tmpl/results_body.php to template/Y)OURTEMPLATE/html/com_jevents/flat/search/results_body.php and edit this file

Then switch the for look at line 29 to read
for( $r = $data['num_events']-1; $r >=0; $r-- ){

Note that it will only work when you are displaying ALL the results and not just some of them
·
Friday, 03 July 2015 14:49
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post