I'm using SiteSearch for a custom properties plugin that searches through properties for sale. Everything works as expected and I've used the event listener in the boot method of my plugin. However, now I also have a custom rental properties plugin. I've added the event listener to the boot method of that plugin too but when I perform a search it returns properties for both properties AND rental properties. Is there a way I can have one listener for properties for sale plugin and another listener for properties for rent?
Many thanks Gavin
You could access your
get() parameters from your event listener and only execute them if for example
?search=properties is present.
The plugin itself does not offer any conditional events, but it should be easy to implement.
That worked perfectly. Thank you so much!
1-3 of 3