Hi,
I'd like to put some featured links on my homepage. I found a great thread in here , that did it, but I am tryng to modify it so it goes 3 columns across.
I have the links going 3 columns across in my categories, but when I try to do it on my homepage it messes up all the tables.
So, now I trying to do it in the globals alone and it's still not working, here is what I have:
sub {
my $link_db = $DB->table('Links');
$link_db->select_options ("ORDER BY rand()","LIMIT 12");
my $sth = $link_db->select ({isFeature => 'yes', isValidated => 'Yes' });
my $output;
while (my $link = $sth->fetchrow_hashref){
$output .= Links::SiteHTML::display ('homepagelink', $link), Links::Utils::column_split($links_loop.length, '3');
}
return $output;
}
any help would be much appreciated
I'd like to put some featured links on my homepage. I found a great thread in here , that did it, but I am tryng to modify it so it goes 3 columns across.
I have the links going 3 columns across in my categories, but when I try to do it on my homepage it messes up all the tables.
So, now I trying to do it in the globals alone and it's still not working, here is what I have:
Code:
sub {
my $link_db = $DB->table('Links');
$link_db->select_options ("ORDER BY rand()","LIMIT 12");
my $sth = $link_db->select ({isFeature => 'yes', isValidated => 'Yes' });
my $output;
while (my $link = $sth->fetchrow_hashref){
$output .= Links::SiteHTML::display ('homepagelink', $link), Links::Utils::column_split($links_loop.length, '3');
}
return $output;
}
any help would be much appreciated