By Guest on Tuesday, 03 January 2017
Replies 2
Likes 0
Views 1.1K
Votes 0
How can we change the jevents list to be sorted by the time created by default, so we can see the latest events first in the backend, without sorting the events with this specific filter.
Hello,

Is this for the list of events in the admin area of JEvents? You would at the very least need a core override to change this which would be lost on updates.

Or is this for an admin area you have in the front end using the latest events module?

Many thanks
Tony
·
Tuesday, 03 January 2017 19:50
·
0 Likes
·
0 Votes
·
0 Comments
·
p.s. if you are referring to the backend list of events you will need to change line 301 of administrator/components/com_jevents/controllers/icalevent.php from
$order = JFactory::getApplication()->getUserStateFromRequest("eventsorder", "filter_order", 'start');
to
$order = JFactory::getApplication()->getUserStateFromRequest("eventsorder", "filter_order", 'created');


Also change the default sort direction from asc to desc on line 300 of the same file.

Keep a note of your changes so you don't loose them when you upgrade JEvents.
·
Thursday, 05 January 2017 08:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post