Filter not available for past events in Table Layout?

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
13 hours 20 minutes ago #176723 by hide10
Hello,

In the menu item of "Events Booking > Category - Table Layout",
if "Display Events Type" is  "All Events", the nice filter appears in the frontend (keyword search, category filter, date filter).

However,
if "Display Events Type" is  "Past Events", the filter does not appear in the frontend.

I'd like to show the nice filter also for the past events.
How can I achieve this?


Thank you for your help,
rikao
 

Please Log in or Create an account to join the conversation.

More
13 hours ago #176724 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Filter not available for past events in Table Layout?
For past event, the filter options such as Tomorrow, This Week, Next week.... does not make sense, that's the reason we do not show it

If you really need it, you can try to edit code to show it. Look at the file components/com_eventbooking/themes/default/category/table.php, you will see this code:
Code:
if ($this->config->get('show_search_bar', 0) && $this->params->get('display_events_type') != 3) { echo $this->loadCommonLayout('common/search_filters.php'); }

Change it to:
Code:
if ($this->config->get('show_search_bar', 0)) { echo $this->loadCommonLayout('common/search_filters.php'); }

That will be good start. You should move the modified file to template override so that the change won't be lost when you update to future releases

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • hide10
  • Topic Author
  • Offline
  • Elite Member
  • Elite Member
More
11 hours 49 minutes ago #176728 by hide10
Thank you for your reply.

I wanted to show "keyword search" and "category" filter for past events.

I will look at the file.
Thank you for your help,

rikao

Please Log in or Create an account to join the conversation.

More
11 hours 18 minutes ago #176730 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Filter not available for past events in Table Layout?
Hi

I decided to implement the change to core package. So you can access to My Downloads menu item, download latest package, upgrade to your site and override is not needed anymore

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc