Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Showing 'Name' not 'Full_Name' in search results?

Quote Reply
Showing 'Name' not 'Full_Name' in search results?
Hi,

I'm really banging my head on what seems like a pretty easy problem. I want to display just the non-linked category 'Name' and not the linked 'Full_Name' in the seach results. Here's where I'm at -- but it's failing miserably:

# Join the link results by category if we are grouping.
my @link_results_loop;
if ($CFG->{build_search_gb}) {
foreach my $cat (sort keys %link_output) {
my $title = Links::Build::build ('title_linked', { name => $cat, complete => 1, home => 0 });

my $catDB = $DB->table('Category');
my $cat_name = $catDB->select ('Name');

my $title_xml = $cat_name;

$link_results .= "<p>$title" . join ("", map { Links::SiteHTML::display('link', $_) } @{$link_output{$cat}});
$link_output{$cat}->[0]->{title_linked} = $title;

$link_output{$cat}->[0]->{cat_title_xml} = $title_xml;
push @link_results_loop, @{$link_output{$cat}};
}
}
else {
$link_results = join ("", map { Links::SiteHTML::display('link', $_) } @{$link_output{none}});
push @link_results_loop, @{$link_output{none}};
}

I think I'm botching it in the Select command.

Many thanks --
Mike
Subject Author Views Date
Thread Showing 'Name' not 'Full_Name' in search results? Swaylock 5479 May 11, 2003, 3:00 PM
Thread Re: [Swaylock] Showing 'Name' not 'Full_Name' in search results?
pugdog 5315 May 15, 2003, 5:44 AM
Thread Re: [pugdog] Showing 'Name' not 'Full_Name' in search results?
Paul 5329 May 15, 2003, 6:04 AM
Thread Re: [Paul] Showing 'Name' not 'Full_Name' in search results?
pugdog 5328 May 15, 2003, 6:16 AM
Post Re: [pugdog] Showing 'Name' not 'Full_Name' in search results?
Paul 5320 May 15, 2003, 6:17 AM
Thread Re: [pugdog] Showing 'Name' not 'Full_Name' in search results?
Paul 5311 May 15, 2003, 6:41 AM
Thread Re: [Paul] Showing 'Name' not 'Full_Name' in search results?
Swaylock 5299 May 15, 2003, 11:50 AM
Post Re: [Swaylock] Showing 'Name' not 'Full_Name' in search results?
Paul 5290 May 15, 2003, 12:10 PM
Thread Re: [Swaylock] Showing 'Name' not 'Full_Name' in search results?
pugdog 5297 May 15, 2003, 12:20 PM
Thread Re: [pugdog] Showing 'Name' not 'Full_Name' in search results?
Paul 5310 May 15, 2003, 12:55 PM
Thread Re: [Paul] Showing 'Name' not 'Full_Name' in search results?
Swaylock 5289 May 15, 2003, 3:33 PM
Thread Re: [Swaylock] Showing 'Name' not 'Full_Name' in search results?
webmaster33 5294 May 15, 2003, 6:19 PM
Thread Re: [webmaster33] Showing 'Name' not 'Full_Name' in search results?
Paul 5309 May 16, 2003, 2:10 AM
Thread Re: [Paul] Showing 'Name' not 'Full_Name' in search results?
webmaster33 5263 May 16, 2003, 8:13 AM
Post Re: [webmaster33] Showing 'Name' not 'Full_Name' in search results?
Paul 5268 May 16, 2003, 8:19 AM
Thread Re: [Paul] Showing 'Name' not 'Full_Name' in search results?
pugdog 5252 May 16, 2003, 9:15 AM
Post Re: [pugdog] Showing 'Name' not 'Full_Name' in search results?
Paul 5252 May 16, 2003, 9:16 AM
Post Re: [pugdog] Showing 'Name' not 'Full_Name' in search results?
webmaster33 5243 May 16, 2003, 11:37 AM
Post Re: [webmaster33] Showing 'Name' not 'Full_Name' in search results?
Jagerman 5247 May 16, 2003, 12:11 PM