Hi, any way (also willing to edit php source files or JS) to get rid of the "choose continent" > "choose country" selections before drilling down to "cities"? We only list events in our country so it does not make sense for our users to drill down to that country each time they search an event. How can we possibly start with out country pre-selected, and the "city" select menu already populated? Any ideas of how this could be achieved?
This will submit the form once to simulate the selection of contintent and country. The submission is required otherwhise the city selection box would not contain any cities. But if you have too many events, this solution may be very slow.
Change in the given code 'EU' and 'DE' to you continents/countrys shortcuts.
Hint: With this solution it is not possible to find events that don't have a venue. Events without venues are only shown if not continent/country is selected.
It it is a nice idea and mostly works, but only after the first form submission.
If you take a look at www.biergartenfreunde.de/events/veranstaltungs-suche.html
initially the "City" select menu is not visible. But if you then choose some option from the "category" select, then after the page reload the "City" menu becomes visible. Is there any way we can have "City" visible on the first page load?
I too have this query. I would like to start with CHOOSE CITY instead of CONTINENT.
All of our events are from one country and it will appear odd to our readers to choose a continent.
I have read the assistance Egnarts offered to sebastian in this thread and I can see that three years ago sebastian said the solution only works after the first submission. I have visited sebastian’s site and can see the default on his site is still Continent.
I’d be grateful for a solution suggestion. Thank you in advance.
I agree, in the settings we can choose the country, so the searchshouldbe able to use this as default.
on JEM 2.3.3 stable in latest Joomla (3.10.2) Protostar php7.4.15
Personally I use t4_B5 template with t4_system plugin framework with bootstrap 5 and fontawesome)
(I prefer free "Signal" or paid "Threema" instead of "Whatsapp".)
in the settings we can choose the country, so the searchshouldbe able to use this as default.
Yes, and if a significant reworking of the coding is required for this and is problematic (I am not a coder) then perhaps:
1) JoJo's suggestion of setting the COUNTRY as a default
2) Triggers a CITY dropdown (attachment)
3) Then just HIDE the display of CONTINENT and COUNTRY
If you find JEM useful and if you use it on your site, please consider a donation to the project.
You are not logged in.
JEM and this site is not affiliated with or endorsed by The Joomla! Project™. Any products and services provided through this site are not supported or warrantied by The Joomla! Project or Open Source Matters, Inc. Use of the Joomla!® name, symbol, logo and related trademarks is permitted under a limited license granted by Open Source Matters, Inc.