Add search options to EB

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago #95930 by John
Add search options to EB was created by John
The search module seems only to look in the description field, does anyone have an idea how to let the search module search also in event start date or meta description?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 2 weeks ago #95950 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add search options to EB
We will have to add some code to allow searching for more fields. Ideally, we would allow searching for a date range. For searching through meta description, at the moment, we don't have support for that kind of meta data, so it is not possible

Regards,

Tuan

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

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago - 9 years 2 weeks ago #96029 by John
Replied by John on topic Add search options to EB
That would really be good if search would get dates searching included. Even if only based on text would be already a major improvement. At least is someone would search for "March 2017" he would then find all events in that period.

Could you tell me which php file is responsible for defining the search, maybe I try myself to override (doubt if have the skills, but I really need this option so the necessity maybe pushes me)
Last edit: 9 years 2 weeks ago by John.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 2 weeks ago #96045 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add search options to EB
Hello

I am afraid of it is quite hard. You would have to translate that text to an actual date, then compare with event_date to return the correct data

Honestly, it will even be hard with myself, too

If you still want to try, look at components/com_eventbooking/model/list.php, find the code
Code:
if ($state->search) { }

and give it a try

Regards,

Tuan

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

  • John
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
9 years 2 weeks ago #96048 by John
Replied by John on topic Add search options to EB
I see your point. After considering and talking to some clients I believe the better way (also for eventbooking) is to add a search option in the search module for date search. Just two date pickers to specify: between [ event_date ] and [ event_end_date ]. Should not be to difficult as no worst to date translation necessary.

Tuan, my skills are limited, but believe this to be a very needed function. So I will try and share if I make it. Hope you will also consider this as seriously the most important thing for. Attending events is the date.

(Even you could argue that searching on price could even be necessary.)

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
9 years 1 week ago #96061 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Add search options to EB
As I said, allow searching for event date is something I will add support for in future releases of the extension

Regards,

Tuan

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

Moderators: Tuan Pham Ngoc