Hello pugdog,
We are trying to break up our category results into several pages with 20 categories per page. According to the forum we added the following code in our "search.cgi" script:
if ($counter <=20)
{
$rec->{more}=0;
}
else
{
$rec->{more}=1;
}
to this section of the code:
# Only display the category output on the first page.
my $counter=0;
if ($nh == 1) {
if ($cat_hits) {
foreach my $hit (@$cat_hits) {
$counter++;
$hit = $catdb->array_to_hash($hit);
$category_results .= "<li>" . &search_build_linked_title ($hit->{Name}) . "\n";
if ($counter >= 20) {last}
Also, to the search_results.html template we added:
<%if more%>
<a href=.....>[more]</A>
<%endif%>
We ended up with this message:
Software error:
Execution of /usr/local/etc/httpd/cgi-bin/admin2/search_temp.cgi aborted due to compilation errors.
We would like to have our search results displayed similar to that of Yahoo's.
We are trying to break up our category results into several pages with 20 categories per page. According to the forum we added the following code in our "search.cgi" script:
if ($counter <=20)
{
$rec->{more}=0;
}
else
{
$rec->{more}=1;
}
to this section of the code:
# Only display the category output on the first page.
my $counter=0;
if ($nh == 1) {
if ($cat_hits) {
foreach my $hit (@$cat_hits) {
$counter++;
$hit = $catdb->array_to_hash($hit);
$category_results .= "<li>" . &search_build_linked_title ($hit->{Name}) . "\n";
if ($counter >= 20) {last}
Also, to the search_results.html template we added:
<%if more%>
<a href=.....>[more]</A>
<%endif%>
We ended up with this message:
Software error:
Execution of /usr/local/etc/httpd/cgi-bin/admin2/search_temp.cgi aborted due to compilation errors.
We would like to have our search results displayed similar to that of Yahoo's.