Here is the global im using:
-----------
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 ( { isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Description} > 220) {
$link->{Description} = substr($link->{Description}, 0, 220) . '...';
}
$output .= Links::SiteHTML::display ('new_links', $link);
}
return $output;
}
---------------------------
I would like to beable to use a <%category%> tag in the "new_links.html" template to display a text version of which category the link is a part of, like "CFML / Web Development / Style Sheets" or something.
Thanks,
Adam
--------------------
Scripts - Powered by Links-SQL
-----------
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 ( { isValidated => 'Yes' });
while ($link = $sth->fetchrow_hashref) {
if (length $link->{Description} > 220) {
$link->{Description} = substr($link->{Description}, 0, 220) . '...';
}
$output .= Links::SiteHTML::display ('new_links', $link);
}
return $output;
}
---------------------------
I would like to beable to use a <%category%> tag in the "new_links.html" template to display a text version of which category the link is a part of, like "CFML / Web Development / Style Sheets" or something.
Thanks,
Adam
--------------------
Scripts - Powered by Links-SQL