In the forum, I found this global. But its not working properly with version 3.20. Its giving a Unknown Tag Detailed URL. I know its missing the property which pases along the TAG as links.html but I cant place it correctly.
Help is much apreciated.
sub {
# Displays the newest on the home page.
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', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Title} > 20) {
$link->{Title} = substr($link->{Title}, 0, 20) . '...';
}
$output .= Links::SiteHTML::display ('link_new_videos', $link);
}
return $output;
}
Thank you.
Juan Carlos
Help is much apreciated.
sub {
# Displays the newest on the home page.
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', isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Title} > 20) {
$link->{Title} = substr($link->{Title}, 0, 20) . '...';
}
$output .= Links::SiteHTML::display ('link_new_videos', $link);
}
return $output;
}
Thank you.
Juan Carlos