Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.
Events Ordering so Upcoming first and Ongoing after
WEll, this hack is bit tricky, because you need to move the ongoing toe the last, and move the upcoming to the top.
this is not the smart solution but you can try it.. In models/events.php, find this code :
case 'startdate':
if (empty($orderBy))
$orderBy = ' ORDER BY a.startdate ASC';
break;
default:
$orderBy = ' ORDER BY a.' . $db->quoteName('startdate') . ' ASC';
break;
and change to :
case 'startdate':
if (empty($orderBy))
$orderBy = ' ORDER BY a.startdate DESC';
break;
default:
$orderBy = ' ORDER BY a.' . $db->quoteName('startdate') . ' DESC';
break;
That solution is not right -- it shows events in reverse order (basically moving events with further/latest date in the first place). any other recommendations?