Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [jwalter] Category Name in Search Results: Edit Log

Here is the list of edits for this post
Re: [jwalter] Category Name in Search Results
Hi,

I think what you need is on about line 130-140 of Links/User/Search.pm

Code:
# Now format the category results.
my $count = 0;
my ($category_results, @category_results_loop);
if (!$filter and $cat_count) {
while (my $cat = $cat_sth->fetchrow_hashref) {
last if ($count++ > $args->{mh});
my $title = Links::Build::build ('title_linked', { name => $cat->{Full_Name}, complete => 1 });
$category_results .= "<li>$title\n";
$cat->{title_linked} = $title;
push @category_results_loop, $cat;
}
}

Don't quote me but it may work if you change it to:

Code:
# Now format the category results.
my $count = 0;
my ($category_results, @category_results_loop);
if (!$filter and $cat_count) {
while (my $cat = $cat_sth->fetchrow_hashref) {
last if ($count++ > $args->{mh});
my $title = $cat->{Simple_Name};
$category_results .= "<li>$title\n";
$cat->{title_linked} = $title;
push @category_results_loop, $cat;
}

}





Last edited by:

PaulW: Dec 10, 2001, 12:04 PM

Edit Log: