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...
# 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
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