- Posts: 6
- Thank you received: 0
the order of event list
- whuang
- Topic Author
- Offline
- New Member
-
Less
More
13 years 2 months ago #14330
by whuang
the order of event list was created by whuang
Hi,
How can I set the order of event list?
Thanks
How can I set the order of event list?
Thanks
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 2 months ago #14340
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: the order of event list
Hi
Go to Event Booking -> Events, click on the header of Order Column. After that, you will be able to change ordering of the events .
Regards,
Tuan
Go to Event Booking -> Events, click on the header of Order Column. After that, you will be able to change ordering of the events .
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- tpartner
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
13 years 1 month ago #14763
by tpartner
Replied by tpartner on topic Re: the order of event list
Hi Tuan,
Is there any way to automatically have the events in category listings displayed chronologically newest --> oldest? (by modifying the code?)
Re-ordering in the column as mentioned above gets a little tricky with many events in many categories.
Thanks,
Tony
Is there any way to automatically have the events in category listings displayed chronologically newest --> oldest? (by modifying the code?)
Re-ordering in the column as mentioned above gets a little tricky with many events in many categories.
Thanks,
Tony
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
13 years 1 month ago #14764
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: the order of event list
Hi
Unfortunately, in this case, you will need to modify code in the extension alitle. Open the file components/com_eventbooking/models/category.php, find the code below :
Change it to :
Regards,
Tuan
Unfortunately, in this case, you will need to modify code in the extension alitle. Open the file components/com_eventbooking/models/category.php, find the code below :
Code:
$orderEvents = EventBookingHelper::getConfigValue('order_events');
if ($orderEvents == 2) {
$orderby = ' ORDER BY a.event_date ';
} else {
$orderby = ' ORDER BY a.ordering ';
}
Change it to :
Code:
$orderby = ' ORDER BY a.event_date DESC ';
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- tpartner
- Offline
- New Member
-
Less
More
- Posts: 2
- Thank you received: 0
13 years 1 month ago #14782
by tpartner
Replied by tpartner on topic Re: the order of event list
Thanks Tuan, that did the trick. Great support, as usual.
Tony
Tony
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.