- Posts: 12
- Thank you received: 0
Events in administrator list order by date desc
- Addlink
- Topic Author
- Offline
- New Member
-
Less
More
12 years 3 months ago #25535
by Addlink
Events in administrator list order by date desc was created by Addlink
Hi,
Is there any way to by default have the events in admin listings displayed chronologically newest --> oldest? (date desc) (by modifying the code?)
Re-ordering in the column require too many clicking
Thanks
Is there any way to by default have the events in admin listings displayed chronologically newest --> oldest? (date desc) (by modifying the code?)
Re-ordering in the column require too many clicking
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 3 months ago #25537
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Events in administrator list order by date desc
Yes. Please follow the instructions below :
1. Open the file administrator/components/com_eventbooking/models/events.php
2. Find the code below :
3. Change it to :
4. Open the file Open the file administrator/components/com_eventbooking/views/events/view.html.php
5. Find the code below:
6. Change it to :
After that, it will work as expected.
Tuan
1. Open the file administrator/components/com_eventbooking/models/events.php
2. Find the code below :
Code:
$filter_order = $mainframe->getUserStateFromRequest($option . 'event_filter_order', 'filter_order', 'a.ordering', 'cmd');
$filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', '', 'word');
3. Change it to :
Code:
$filter_order = $mainframe->getUserStateFromRequest($option . 'event_filter_order', 'filter_order', 'a.event_date', 'cmd');
$filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'DESC', 'word');
4. Open the file Open the file administrator/components/com_eventbooking/views/events/view.html.php
5. Find the code below:
Code:
$filter_order = $mainframe->getUserStateFromRequest($option . 'event_filter_order', 'filter_order', 'id', 'cmd');
$filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', '', 'word');
6. Change it to :
Code:
$filter_order = $mainframe->getUserStateFromRequest($option . 'event_filter_order', 'filter_order', 'a.event_date', 'cmd');
$filter_order_Dir = $mainframe->getUserStateFromRequest($option . 'filter_order_Dir', 'filter_order_Dir', 'DESC', 'word');
After that, it will work as expected.
Tuan
The following user(s) said Thank You: Addlink
Please Log in or Create an account to join the conversation.
- Addlink
- Topic Author
- Offline
- New Member
-
Less
More
- Posts: 12
- Thank you received: 0
12 years 3 months ago #25540
by Addlink
Replied by Addlink on topic Re: Events in administrator list order by date desc
Many thanks, it was very fast

Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
12 years 3 months ago #25541
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Events in administrator list order by date desc
Hehe, you was lucky enough. I just come back to office from new year holiday.
Tuan
Tuan
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.