Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Top Cagegory Global Question

Quote Reply
Top Cagegory Global Question
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
Subject Author Views Date
Thread Top Cagegory Global Question macbethgr 2225 Feb 11, 2004, 6:32 AM
Thread Re: [macbethgr] Top Cagegory Global Question
afinlr 2110 Feb 12, 2004, 6:12 AM
Thread Re: [afinlr] Top Cagegory Global Question
macbethgr 2107 Feb 12, 2004, 9:49 AM
Thread Re: [macbethgr] Top Cagegory Global Question
afinlr 2104 Feb 12, 2004, 9:55 AM
Post Re: [afinlr] Top Cagegory Global Question
macbethgr 2080 Feb 12, 2004, 10:41 AM