Results 1 to 3 of 3

Thread: Limit number of results?

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Posts
    9

    Default Limit number of results?

    Two questions regarding the CGI version of Zoom search:

    1) Is there a way I can limit the number of results returned without depending on the user to select a number of search results per page?

    2) I see that the drop down box for results returned per page defaults to 10. Can I change to default to less than 10? I see how to do in in the scripts of other versions, but I can't figure out how to do it with the CGI version.

    Thanks,
    Rob

  2. #2
    Join Date
    Dec 2004
    Location
    Sydney, Australia
    Posts
    3,845

    Default

    1.) Yes. You can pre-select the "results per page" setting by either linking to the search page with an extra parameter (eg. instead of simply linking to "search.php", link to "search.php?zoom_per_page=20") or you can define your own search form (see below) with the per page option specified in a hidden input tag.

    2.) Yes. You will mostly likely want to disable the auto generated search form, and define your own search form as described in this FAQ:
    http://www.wrensoft.com/zoom/support...tml#searchform

    You can then specify the available "results per page" options as you would like. If you wish to force it to a specific number, and not allow the user to change it, you can use a hidden input tag like so:

    Code:
    <input type="hidden" name="zoom_per_page" value="5">
    By having this in your search form HTML (and omitting the dropdown box in the example from the FAQ), you will force the search to 5 results per page.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

  3. #3
    Join Date
    Feb 2006
    Posts
    9

    Default

    Thanks Ray!

Similar Threads

  1. Reducing number of results displayed per page
    By toneharb in forum Zoom Search Engine V3, V4 & V5 (Old Versions)
    Replies: 3
    Last Post: 06-10-2009, 09:03 AM
  2. Displaying number of search results
    By emozley in forum Zoom Search Engine V3, V4 & V5 (Old Versions)
    Replies: 1
    Last Post: 07-18-2006, 03:07 AM
  3. format results number
    By Anonymous in forum Zoom Search Engine V3, V4 & V5 (Old Versions)
    Replies: 1
    Last Post: 12-29-2005, 07:27 PM
  4. number of categories limit?
    By moonbeaver in forum Zoom Search Engine V3, V4 & V5 (Old Versions)
    Replies: 5
    Last Post: 10-20-2005, 12:53 AM
  5. Limit search results to pdfs only?
    By teddy in forum Zoom Search Engine V3, V4 & V5 (Old Versions)
    Replies: 7
    Last Post: 06-23-2005, 02:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •