Gossamer Forum
Home : Products : Gossamer Links : Discussions :

link to link's category?

Quote Reply
link to link's category?
hi

i'm using the top 5 global, but what I want to do is make the title link back to the category the link is in, rather than go to the URL of the link.

can anyone tell me how to do that - ie what to stick in the global and what tag goes in the template?

here's the global I'm using...


Code:
sub {
# Displays the newest links on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY Add_Date DESC Limit 5');
$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('include_nav_newlinks_format', $link);
}
return $output;
}



r

Last edited by:

ryel01: Mar 18, 2004, 1:13 AM
Subject Author Views Date
Thread link to link's category? ryel01 2154 Mar 18, 2004, 1:08 AM
Thread Re: [ryel01] link to link's category?
fuzzy logic 2075 Mar 18, 2004, 8:04 AM
Thread Re: [fuzzy logic] link to link's category?
ryel01 2070 Mar 18, 2004, 12:59 PM
Thread Re: [ryel01] link to link's category?
afinlr 2055 Mar 18, 2004, 3:13 PM
Thread Re: [afinlr] link to link's category?
ryel01 2042 Mar 18, 2004, 10:31 PM
Thread Re: [ryel01] link to link's category?
fuzzy logic 2026 Mar 18, 2004, 11:23 PM
Post Re: [fuzzy logic] link to link's category?
ryel01 2037 Mar 18, 2004, 11:42 PM
Post Re: [fuzzy logic] link to link's category?
ryel01 2015 Mar 19, 2004, 1:35 AM