HI!
I am using the Top Category Global, and I want to include the category description in addition to the name, but I have not been able to figure out how to do it.... can any one help?
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~<div class="rbsDept"><a href="$CFG->{build_root_url}/$url" style="text-decoration: none">$root_cat</a></div><div class="rbsSub"> </div>~;
}
return $output;
}
Thanks,
George
I am using the Top Category Global, and I want to include the category description in addition to the name, but I have not been able to figure out how to do it.... can any one help?
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~<div class="rbsDept"><a href="$CFG->{build_root_url}/$url" style="text-decoration: none">$root_cat</a></div><div class="rbsSub"> </div>~;
}
return $output;
}
Thanks,
George