Im not very good with perl. Basically I want to limit the number of category hits I get when doing a search.
Is this the right code to edit and where would I add the max="" so that only a certain number of category matches are found. I find it really annoying when I have 30 category hits staring me in the face.
--
# Only display the category output on the first page.
if ($nh == 1) {
if ($cat_hits) {
foreach my $hit (@$cat_hits) {
$hit = $catdb->array_to_hash($hit);
$category_results .= "<li>" . &search_build_linked_title ($hit->{Name}) . "\n";
}
}
}
Is this the right code to edit and where would I add the max="" so that only a certain number of category matches are found. I find it really annoying when I have 30 category hits staring me in the face.
--
# Only display the category output on the first page.
if ($nh == 1) {
if ($cat_hits) {
foreach my $hit (@$cat_hits) {
$hit = $catdb->array_to_hash($hit);
$category_results .= "<li>" . &search_build_linked_title ($hit->{Name}) . "\n";
}
}
}