Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

New links in top category

Quote Reply
New links in top category
Hello GT community,



sub {
# Displays the Newest links.
my ($output,$sth,$link);
my $search_db = $DB->table('Links');
$search_db->select_options ('ORDER BY ADD_DATE DESC Limit 10');
$sth = $search_db->select ( { isNew => 'Yes'});
while ($link = $sth->fetchrow_hashref) {
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}

how to modify this global from the resources section so that is displays the new links by top category only?

Thank you. Smile
Subject Author Views Date
Thread New links in top category nt6 2329 Aug 12, 2002, 9:17 AM
Thread Re: [nt6] New links in top category
Paul 2258 Aug 12, 2002, 9:21 AM
Thread Re: [Paul] New links in top category
nt6 2236 Aug 12, 2002, 9:25 AM
Thread Re: [nt6] New links in top category
Paul 2233 Aug 12, 2002, 9:29 AM
Post Re: [Paul] New links in top category
nt6 2227 Aug 12, 2002, 9:35 AM