Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Category Menu Everywhere with Image

Quote Reply
Category Menu Everywhere with Image
Hello all,

Below is the global tag for show top category in any page, my question is, how to show the image next to category name to this global tag, for the information i already set the image for every category and its work at <%category%>

Please help

Code:
Category_Menu =>
sub {
my $tags = shift;
my $cat_db = $DB->table('Category');
$cat_db->select_options("ORDER BY Full_Name");
my @root_cats = $cat_db->select (['Full_Name'], { FatherID => 0 })->fetchall_list;
my $output;
foreach my $root_cat (@root_cats) {
my $url = $cat_db->as_url($root_cat);
$output .= qq~<a href="$CFG->{build_root_url}/$url">$root_cat</a><br>~;
}
return $output;
}
Subject Author Views Date
Thread Category Menu Everywhere with Image reenee 2611 Mar 22, 2002, 1:14 PM
Thread Re: [reenee] Category Menu Everywhere with Image
pugdog 2540 Mar 22, 2002, 6:14 PM
Thread Re: [pugdog] Category Menu Everywhere with Image
reenee 2530 Mar 23, 2002, 12:36 AM
Thread Re: [reenee] Category Menu Everywhere with Image
startpoint 2523 Mar 23, 2002, 3:54 AM
Thread Re: [startpoint] Category Menu Everywhere with Image
reenee 2578 Mar 23, 2002, 10:18 AM
Thread Re: [reenee] Category Menu Everywhere with Image
pugdog 2511 Mar 23, 2002, 7:46 PM
Post Re: [pugdog] Category Menu Everywhere with Image
reenee 2498 Mar 24, 2002, 6:17 AM