I have an archive page to display all locations in my directory.
Unfortunately to show all the locations in my directory renders the archive with search form and map completely unusable because of the dramatically slow loading times.
To try and find a solution where there isn't one with Toolset I've come up with another idea.
This is to show a default State, for example, "New York", when the archive page loads initially.
By doing so, it will intuitively suggest to users to select their own state from the drop down menu, while at the same time, when limiting the locations on the map to only one state it will load far fewer locations eliminating the absurd loading time required for hundreds of directory locations on the map.
How can I go about implementing this?
I suppose what I need to do is set a "default" filter parameter in my dropdown selection for filtering locations by State?
Is there a way to implement this which won't change the URL of the archive page to one with the long string query behind it? (to try and keep things clean for SEO purposes)
I haven't found any documentation on how to implement something like this.
Preferably I do not want to create yet a second view for an archive of all locations in "New York" and use conditional blocks to show etc. (as I'm doing this on an archive page, without Toolset Views, I don't think I can anyway)
Is there a simple snippet of code I may be able to insert into the code editor to achieve this?
It's important that the search/filter form remains functional for the users to be able to navigate next to their own state.
Thank you for the help!
G