asbjorn Posted May 22, 2020 Posted May 22, 2020 I have a website with multiple content types that I want to be accessible through search. I really like the live search on processwire.com, that sorts content types while typing. I tried to find the code to recreate this, with no luck. Does anyone know if this is jquery, specific jquery plugins, json/xml cached files, and what kind of PHP code is used? Any tip that point me in the right direction would be much apperciated. The search result listing seems fairly easy to create with sorting through parameters.
huseyin Posted May 22, 2020 Posted May 22, 2020 https://modules.processwire.com/modules/ajax-search/ This module will do it. You can style and sort your results as you want.
huseyin Posted May 22, 2020 Posted May 22, 2020 We used the above module on www.kentvitrini.com As this a turkish city portal i suggest the search word for testing ; "corlu" (the name of the city) The results are segmented as News, Companies, Events etc..
asbjorn Posted May 27, 2020 Author Posted May 27, 2020 Thank you @huseyin, I got it working with the suggested Ajax Search module and some minor tweaking with inspiration from your site and ProcessWire.com. In the end I decided not to use the live search anyway. But I got to try it out, and it could be useful for future clients. 1
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now