Changing limit on search results page
Hi Low,
I've got a search form that is currently generating 200 results per page. The users are sometimes wanting to generate more results per page so that they can export all the results using DataTables (which exports the contents of a single table), but I don't want to do this all the time as it can cause page load times to shoot right up.
I can use a limit dropdown field on the search form to set the limit, but my question is, is it possible to have a limit dropdown field on the results page itself? And to allow users to change this value and resubmit the current search results with this new limit value?
If so, how would I go about doing this without adding a complete duplicate of the search form above the search results?
Thanks,
Stephen
Replies
Low 4 Jul 2013 06:17
You could, but easier might be to use the URL tag. Setting the query="" parameter to the URL tag will pass through the existing query. Any other parameters set will override the values in the query="" parameter. So...
...will generate a link to the same search results, but with a limit of 300.
Wiley Koepp 28 Apr 2015 18:50
Is there a similar functionality for Low GoogleSearch? It doesn't appear that a corresponding tag exists...
Low 28 Apr 2015 19:19
No, Low GoogleSearch doesn't have a URL-tag. You'll need to set the num parameter on the Results tag instead, as per the Request Parameters: https://developers.google.com/custom-...