Limit search result using Search Block
Permalink 1 user found helpful
Hey I just want to know how can I limit the number of results per page on Search block.
I would like to limit my result to 10 or any other number per page.
I keep on following the code but I cant find the limit on queries.
Is there an easier way to do this.
Thanks.
I would like to limit my result to 10 or any other number per page.
I keep on following the code but I cant find the limit on queries.
Is there an easier way to do this.
Thanks.
...to here:
(you'll probably need to create the /blocks/search/ directory first).
Now edit that new copy of the file and find this line of code (it's down near the bottom):
...and directly ABOVE that line add this new line of code:
You can change that number 10 to whatever you want.