Hi Carson,
I am trying to build an location search site with intercooler and have some questions. I have setup a demo of what I have managed so far.
I would like to integrate the following features:
Active Search and Filtering of results.
This seems to be working ok, I would like to make the loading animation more visible, but this is maybe more a css styling issue. I am also wondering if a reset button might make it easier for users to reset when there is no results…
Search history
As the user types and changes filters, the URL should update. This would be like how the google search functions, and allows for the back button to work (returning to the results page for example), and allows for users to share or bookmark the search results. I have tried adding the ic-push-url attribute and various other settings but have not managed to get it working. Any tips how to get this working with active search and filters?
Overlay results viewer.
I would like to search result pages to be viewed in an overlay style similar to how Product Hunt works (which are basically like modal windows which stack on top of each other). I have created a hidden overlay on the page, and it seems to be loading in the div, but I cannot change the class on the div to make it visible. How can I add a class to this .overlay div to make it visible when they click on the page? I assume it's ic-add-class, but could not get it to work.
And then once the modal is open, what would be the best way add a “close” or back button so they can return to the search results?
Pagination / Load more on search results
How can I make the pagination of search results load like in the “Click To Load” example of intercooler docs.?
Other User Experience enhancements
How best to handle when a user presses enter or clicks on the search button?
My end goal will be to have a usable and accessible example of an advanced search application developed with progressive enhancement. I still need to work on the design and all the accessibility enhancements, but I would like to show that a site can have advanced functionality without compromising on accessibility. I would like to make the code available in some form once I am done, maybe as a tutorial for others to play with - it’s built in PHP using the Processwire framework, which like intercooler, is a nice tool to build custom sites without being complex.
Thanks for building Intercooler,
Michael