Gossamer Forum
Home : Products : Gossamer Links : Discussions :

List Subcategory + Total New Links

Quote Reply
List Subcategory + Total New Links
Hi All,

Below is the tag for display subcategory by specific category ID, my problem is, how do i display total new links beside the subcategory, for example:

Subcategory1 (20 New)
Subcategory2 (5 New)
Subcategory3 (0 New)
Subcategory4 (8 New)

Tag for display subcategory specific by Category ID:
sub {
my $output;
my $cat_db = $DB->table('Category');
my $cat_id = '226';
$cat_db->select_options('ORDER BY Full_Name');
my $sth = $cat_db->select ( {'FatherID' => $cat_id}, ['Full_Name','Name'] );
while (my ($cat,$heading) = $sth->fetchrow_array) {
my $url = $cat_db->as_url($cat);
$output .= qq~$heading~;
}
return $output;
}


Please help and thanks so much.
Subject Author Views Date
Thread List Subcategory + Total New Links reenee 4313 Jul 5, 2003, 2:52 AM
Thread Re: [reenee] List Subcategory + Total New Links
afinlr 4224 Jul 5, 2003, 10:33 AM
Thread Re: [afinlr] List Subcategory + Total New Links
reenee 4210 Jul 5, 2003, 12:16 PM
Thread Re: [reenee] List Subcategory + Total New Links
afinlr 4200 Jul 5, 2003, 12:38 PM
Thread Re: [afinlr] List Subcategory + Total New Links
reenee 4208 Jul 5, 2003, 12:53 PM
Thread Re: [reenee] List Subcategory + Total New Links
afinlr 4214 Jul 5, 2003, 1:01 PM
Thread Re: [afinlr] List Subcategory + Total New Links
reenee 4196 Jul 5, 2003, 1:06 PM
Thread Re: [reenee] List Subcategory + Total New Links
afinlr 4223 Jul 5, 2003, 1:07 PM
Post Re: [afinlr] List Subcategory + Total New Links
reenee 4197 Jul 5, 2003, 1:09 PM
Thread Re: [afinlr] List Subcategory + Total New Links
nt6 4059 Mar 4, 2004, 9:04 AM
Post Re: [nt6] List Subcategory + Total New Links
afinlr 4028 Mar 4, 2004, 9:17 AM