Gossamer Forum
Home : Products : Gossamer Links : Discussions :

recent postings

Quote Reply
recent postings
i used the forums here to implement a recent postings list for the front page of my LSQL site.

however, it doesn't allow the detailed_url tag.. how can i make it so it will work? i currently have the recent file code as a global variable "newlinks" which references it through "recent.html"

let me know if you need more information, thanks :D
-simon
http://www.fatscripts.com
Quote Reply
Re: [lastsaga] recent postings In reply to
You need to specify the detailed_url within the global. Something like this:

sub {
# Displays the newest links on the home page.
my ($output,$sth,$link);
my $search_db = $DB->table('Links','CatLinks','Category');
$search_db->select_options ('ORDER BY Add_Date DESC Limit 5');
$sth = $search_db->select ( { isNew => 'Yes', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
$link->{'detailed_url'} = "$CFG->{build_detail_url}/$link->{'ID'}$CFG->{build_extension}";
$output .= Links::SiteHTML::display ('link', $link);
}
return $output;
}
Quote Reply
Re: [afinlr] recent postings In reply to
thank you thank you!!! :D
-simon
http://www.fatscripts.com