Tuesday, 03 January 2017
  2 Replies
  1.1K Visits
0
Votes
Undo
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.
Tuesday, 03 January 2017 19:50
·
#181128
0
Votes
Undo
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

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!Join the JEvents club today!

Thursday, 05 January 2017 08:34
·
#181203
0
Votes
Undo
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.

JEvents Club members can get priority forum support at the Support Forum. As well as access to a variety of custom JEvents addons and benefits. Join the JEvents club today!

  • Page :
  • 1
There are no replies made for this post yet.