Perlfect Solutions
 

[Perlfect-search] Limit number of result pages in Perlfect Search 3.30?

Daniel M�hwald perlfect-search@perlfect.com
Mon, 17 Jun 2002 21:12:15 +0200 (CEST)
Dear List,

me again, running Perlfect Search 3.30.

I wondered if it would be a good idea to modify the search.pl around line
445 [ my $last_page = ceil($real_last, $RESULTS_PER_PAGE); ] in a way, that
it would compare $last_page to a user defined value in conf.pl (say
"number_of_pages_for_result" or similiar) so that

if $last_page => $number_of_pages_for_result
then $last_page = $number_of_pages_for_result

therefore putting an upper limit to the maximum number of result pages.

I write this to the list, because i would consider it a good thing(TM) to
have, and wanted to ask on the list first, before i would start to modify
the conf.pl and the search.pl.

Your opions?



Mit freundlichen Gr��en:

Daniel W. M�hwald, Bonn - GERMANY