Search query question
Re: Search query question
Get a page with no results, instead of showing no results can we show some random galleries on page?
Re: Search query question
if ('<!--TOTAL_ITEMS-->' == 0) {
JS redirect to /?force_template=random_galleries
}
ща course you need to create random_galleries template
JS redirect to /?force_template=random_galleries
}
ща course you need to create random_galleries template
Don't forget to run script update
Re: Search query question
How do I do a Js redirect?
Re: Search query question
Don't forget to run script update
Re: Search query question
If a search query returns only for example 5-6 galleries, is there anyway to just add random galleries on the same page after those 5-6 galleries?
Re: Search query question
yes, but it'll add a lot of load
if ('<!--TOTAL_ITEMS-->' < 5) {
<thumb ....
}
if ('<!--TOTAL_ITEMS-->' < 5) {
<thumb ....
}
Don't forget to run script update
Re: Search query question
I was just using 5-6 as an example number here, as you know it could be 2 or maybe even 10 depending on the results of the search. Basically after we have the results (could be 0, 2 or even 20) just add X amount of random galleries on the same page. Any way to achieve this without adding too much load on the server?
Re: Search query question
JS redirect, iframe include and so on
Do not add random thumbs into the same template
Do not add random thumbs into the same template
Don't forget to run script update
Re: Search query question
Is there anyway to achieve this in sphinx? Then issue with the js redirect method and iframe is that if a search query has a few results by redirecting to another template it won't show the relevant results if we have any.