Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Limited to 10 results per page

Quote Reply
Limited to 10 results per page
How do I limit the results of a search and browsing, with results of only 10 per page.

At present all are on the first page.
Quote Reply
Re: Limited to 10 results per page In reply to
Two options you will want to look at in Links.pm:

Quote:
# Turn on span mode. This will create new pages if a category has more
# then build_links_per_page links in it. It will break up the what's new listing
# into per day pages.
$LINKS{build_span_pages} = 1;
$LINKS{build_links_per_page} = 25;

For search results, it defaults to 25 returned at a time. You can change this in search.cgi:

($in->param('mh') =~ /^(10|25|50|100)$/) ? ($mh = $1) : ($mh = 25);

Just change the mh = 25 to mh = 10.

Cheers,

Alex