liedekef / events-made-easy

The wordpress plugin events-made-easy to manage events, memberships and more.
https://www.e-dynamics.be/wordpress
GNU General Public License v2.0
24 stars 6 forks source link

text or name search in filterform #387

Closed mltest1 closed 9 months ago

mltest1 commented 9 months ago

Describe the feature Having a website with 1000 locations/events/members it's not very helpfull to get a drop-down list in the filterform. It would make more sense to have a text field in the filterform to be able to search a location/event/member

Using Wordpress search implementation is not nice because you don't want to mix results of eme with other wordpress items

liedekef commented 9 months ago

Converting the dropdown to something else can be done by adding this to eme.js:

        $('#eme_loc_filter').select2();
        $('#eme_cat_filter').select2();
        $('eme_city_filter').select2();
        $('eme_country_filter').select2();
        $('eme_contact_filter').select2();
        $('eme_author_filter').select2();

This converts all dropdown-selects to better selects :-) I'll test this too and add to the code if no further side-effects.

mltest1 commented 9 months ago

What is select2 doing differently? Can I test this by adding just above lines in my live installation?

mltest1 commented 9 months ago

I found you changes in the code and it works fine. Many thanks!

liedekef commented 9 months ago

I've changed the commit a bit, is better now :-) https://github.com/liedekef/events-made-easy/commit/c461f303fb38f9dc914fcffad4b2e141182148ce