Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [pugdog] Category Menu Everywhere with Image: Edit Log

Here is the list of edits for this post
Re: [pugdog] Category Menu Everywhere with Image
Thanks pugdoq, i did it.

The next problem is, how can i show the number of links and the category description next to category name, see the tag below.

Somebody please help me...


Code:
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~
<tr>
<td valign=top>
<img src="$CFG->{build_images_url}/icon/$root_cat.gif">
</td>
<td valign=top>
<a href="$CFG->{build_root_url}/$url"><font face="MS Sans Serif" size="1"><b>$root_cat</b></a>
<font face="Arial" size="1">$CFG->{Number_of_Links}</font>
<br><font face="Arial" size="1">$CFG->{Description}
</font>
</td>
~;

}
return $output;
}

Last edited by:

reenee: Mar 24, 2002, 6:26 AM

Edit Log: