Hi to all !!!!
I want include MyLinks script on home.html but with a different templates...
trought Template Globals
This Global it's correct ??? :
---------------------------------------------------
sub {
# Displays Mylinks 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'});
while ($link = $sth->fetchrow_hashref) {
$link->{Title} =~ s,^(.{20}).*$,$1...,;
$output .= Links::User::Favorites::display ('NewTemplate', $link);
}
return $output;
}
--------------------------------------------------
Someone can help me ???
Thanks in Advance
Bye From Italy
I want include MyLinks script on home.html but with a different templates...
trought Template Globals
This Global it's correct ??? :
---------------------------------------------------
sub {
# Displays Mylinks 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'});
while ($link = $sth->fetchrow_hashref) {
$link->{Title} =~ s,^(.{20}).*$,$1...,;
$output .= Links::User::Favorites::display ('NewTemplate', $link);
}
return $output;
}
--------------------------------------------------
Someone can help me ???
Thanks in Advance
Bye From Italy