View Full Version : Reducing number of results displayed per page
toneharb
06-16-2005, 02:40 PM
Is it possible to reduct the no of results displayed by zoom php search at the moment it displays 10 per page .
Thanks
wrensoft
06-16-2005, 11:25 PM
If you are using the default HTML search form generated by the script then there will be a drop down list containing 4 options. 10, 20, 50 & 100 results per page.
If you want values different from these 4 values then you need to turn off the default form and create your own custom form.
You can turn off the default form from the "Search page" tab in the Zoom configuration window. Your own form should look like the default form, but with different values in the drop down list. e.g.
<form method="get" action="/search/search.php">
Search for: <input type="text" name="zoom_query" size="20" value="" class="zoom_searchbox" />
<input type="submit" value="Submit" class="zoom_button" />
<span class="zoom_options">Results per page:
<select name='zoom_per_page'>
<option selected="selected">5</option>
<option>10</option>
<option>15</option>
</select>
</form>
Another option would be to not have the drop down list but have a hidden form element to directly specify the number of results required. You need to generate this field in the URL when the form is submitted,
zoom_per_page=xx
where xx is the results required per page.
----
David
vBulletin® v3.7.0, Copyright ©2000-2008, Jelsoft Enterprises Ltd.