Gossamer Forum
Home : Products : Links 2.0 : Customization :

Setting search results to 10 per page

Quote Reply
Setting search results to 10 per page
Can someone tell me how to set the search results to ten at a time. I thought I had seen a thread once before on this topic but I can't seem to find it again. My category pages show 10 at a time. Is there somewhere else I can Change the Search results to 10 per page.

Thanks in advance

Keith



------------------
www.1st-artsandcrafts.com
Quote Reply
Re: Setting search results to 10 per page In reply to
If you are using Links v1 or Links v2 without templates:

Go to site_html.pl, sub site_html_search_form, and find the following:

Quote:
Number of Results: <SELECT NAME="mh"><OPTION>10<OPTION SELECTED>25<OPTION>50<OPTION>100</SELECT><BR>

According to this, it defaults to 25 results per page but gives users the option to get more or less. If you want force the option to 10 results per page only, delete:

Quote:
<OPTION SELECTED>25<OPTION>50<OPTION>100

If you want to default to 10 but still allow other user options, move SELECTED to the first option listed (10) or just remove it completely and it will default to the first one in the list.

If you are using Links v2 with templates, make the same kind of change in the search.html template.

I hope this helps.