How to sort your even list order in Eventlist
The tutorials explains how to sort date to descending on your event list displaying in EventList joomla page. Evenlist is a free extention in joomla that offers a lot features and possibilities which makes your work easier, like the Venue database, Frontend editing with more than the three Joomla! access levels, Picture resizing and much more. But also for your site visitors EventList has some additional features to offer, like a simple registration system, map service links, or the submission of new events and venues. Visit or download thier extention here: http://www.schlu.net/
The problem:
The default display is a list that show old events first and you need to click the Date header links to sort on latest events. But with the modification below it allows you to display the list in latest to oldest events. They should include this kind of settings on thier new release version soon.
Here how:
In models/eventlist.php look for :
$this->setState(’filter_order_dir’, JRequest::getCmd(’filter_order_Dir’, ‘ASC’));
change to :
$this->setState(’filter_order_dir’, JRequest::getCmd(’filter_order_Dir’, ‘DESC’));
Iin views/eventlist/view.html.php look for :
$filter_order_Dir = JRequest::getWord(’filter_order_Dir’, ‘ASC’);
change to :
$filter_order_Dir = JRequest::getWord(’filter_order_Dir’, ‘DESC’);

Ratings:
Posted in:
Content Management System, Joomla, Website Addons — admin|
|
|



















