conditional results if no results found
Hi,
I am trying to find a solution to punch in alternative results in no search scenario....
the alternate results will be unset with some fields to produce the closest result...I think the best approach should be developing an extension...
Is there a hook in low_search to access the returned data after every search?
Also ... should {if no results} embed alternative template {/if} ... the right approach....
Please guide !!!
Replies
Low 1 Jul 2014 12:33
This "closest result" seems pretty arbitrary. Here are all the available hooks, and you can also use channel entries hooks, as LS calls that for generating the search results.
The way to approach it is really up to you. Embedding a template in the no_results conditional can work. However, how to exactly make this happen is beyond the scope of LS support, I'm afraid.