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

Re: [SandraR] Global to display category dropdown...

Quote Reply
Re: [SandraR] Global to display category dropdown... In reply to
I changed it so it contains the number of links:
Here is a view of it in action Sitemap

Would it be possble to make it contain New or Updated?

Code:
sub {
# -------------------------------------------------------------------
my $tags = shift;
my $cat_db = $DB->table('Category');
$cat_db->select_options ('ORDER BY Full_Name');
my $sth = $cat_db->select (['Full_Name','ID','Name','CatDepth','Number_of_Links'] );
my $output=qq~<table width="100%"><tr valign=top><td width="50%"><table>~;
my $i=0;
while (my ($cat,$ID,$heading,$depth,$cnt) = $sth->fetchrow_array) {
$i++;
my $url1 = $cat_db->as_url($cat);
$output.= qq~<tr><td>~;
my $depth = ($cat =~ tr/\///);
if ($depth > 0){$output .= "&nbsp;&nbsp;"x$depth."<font size=-1>";}
else {$output.="<b>";}
$output.=qq~<a href="$CFG->{build_root_url}/$url1" class="toc">$heading</a> ($cnt)~;
if ($depth > 0){$output .= "</font>";}
else {$output.="</b>";}
$output.=qq~</td></tr>~;
if (($i eq '91')){ $output.=qq~</table></td><td width="50%"><table align=top>~;}
}
$output.="</table></td></tr></table>";
return $output;
}


Sandra Roussel
Chonsa Group Design - Fresh Start Housing
Subject Author Views Date
Thread Global to display category dropdown... Andy 15191 Feb 10, 2004, 3:23 AM
Thread Re: [Andy] Global to display category dropdown...
afinlr 14586 Feb 10, 2004, 4:17 AM
Thread Re: [afinlr] Global to display category dropdown...
Andy 14690 Feb 10, 2004, 7:11 AM
Thread Re: [Andy] Global to display category dropdown...
FrankM 14552 Feb 10, 2004, 2:24 PM
Thread Re: [FrankM] Global to display category dropdown...
Andy 14637 Feb 10, 2004, 11:59 PM
Thread Re: [Andy] Global to display category dropdown...
Bigpat 14541 Feb 13, 2004, 1:44 PM
Thread Re: [Bigpat] Global to display category dropdown...
Andy 14524 Feb 14, 2004, 12:14 AM
Post Re: [Andy] Global to display category dropdown...
Bigpat 14429 Feb 14, 2004, 3:20 AM
Thread Re: [Andy] Global to display category dropdown...
minesite 14641 Feb 14, 2004, 6:13 AM
Thread Re: [minesite] Global to display category dropdown...
Andy 14806 Feb 14, 2004, 7:14 AM
Post Re: [Andy] Global to display category dropdown...
minesite 14438 Feb 14, 2004, 8:39 AM
Thread Re: [Andy] Global to display category dropdown...
pugdog 14650 Feb 14, 2004, 10:52 AM
Thread Re: [pugdog] Global to display category dropdown...
Andy 14508 Feb 16, 2004, 12:02 AM
Thread Re: [Andy] Global to display category dropdown...
Andy 14295 Aug 20, 2004, 7:31 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 14345 Sep 2, 2004, 12:21 PM
Thread Re: [Abusaki] Global to display category dropdown...
jdgamble 14392 Sep 2, 2004, 3:01 PM
Thread Re: [jdgamble] Global to display category dropdown...
Dorette 14210 Sep 3, 2004, 9:58 AM
Thread Re: [Abusaki] Global to display category dropdown...
Andy 14252 Sep 3, 2004, 10:10 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 14292 Sep 3, 2004, 10:17 AM
Thread Re: [Abusaki] Global to display category dropdown...
Andy 14304 Sep 3, 2004, 10:27 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 14228 Sep 3, 2004, 10:51 AM
Thread Re: [Abusaki] Global to display category dropdown...
Dorette 14328 Sep 3, 2004, 10:53 AM
Post Re: [Abusaki] Global to display category dropdown...
jdgamble 14224 Sep 3, 2004, 3:00 PM
Thread Re: [Andy] Global to display category dropdown...
ajiimd 14322 Sep 4, 2004, 4:24 PM
Thread Re: [ajiimd] Global to display category dropdown...
Dorette 14127 Nov 6, 2004, 3:38 AM
Thread Re: [Abusaki] Global to display category dropdown...
Andy 10869 Nov 6, 2004, 3:53 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 10839 Nov 6, 2004, 4:08 AM
Thread Re: [Abusaki] Global to display category dropdown...
afinlr 10899 Nov 6, 2004, 4:28 AM
Post Re: [afinlr] Global to display category dropdown...
Dorette 10867 Nov 6, 2004, 4:33 AM
Thread Re: [Abusaki] Global to display category dropdown...
Andy 10860 Nov 6, 2004, 6:30 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 10894 Nov 8, 2004, 12:36 AM
Thread Re: [Abusaki] Global to display category dropdown...
Andy 10823 Nov 8, 2004, 12:44 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 10875 Nov 8, 2004, 2:05 AM
Thread Re: [Abusaki] Global to display category dropdown...
Andy 10906 Nov 8, 2004, 2:45 AM
Thread Re: [Andy] Global to display category dropdown...
Dorette 10813 Nov 8, 2004, 9:22 PM
Post Re: [Abusaki] Global to display category dropdown...
Andy 10729 Nov 9, 2004, 12:19 AM
Thread Re: [Andy] Global to display category dropdown...
mick31 10814 May 19, 2005, 6:21 AM
Post Re: [mick31] Global to display category dropdown...
Andy 10732 May 19, 2005, 6:30 AM
Thread Re: [mick31] Global to display category dropdown...
SandraR 10385 Oct 9, 2006, 10:54 PM
Thread Re: [SandraR] Global to display category dropdown...
SandraR 10401 Oct 12, 2006, 2:52 PM
Thread Re: [SandraR] Global to display category dropdown...
fuzzy logic 10289 Oct 12, 2006, 3:40 PM
Post Re: [fuzzy logic] Global to display category dropdown...
SandraR 5096 Oct 12, 2006, 3:57 PM
Thread Re: [Andy] Global to display category dropdown...
mick31 10707 Oct 27, 2005, 3:37 AM
Thread Re: [mick31] Global to display category dropdown...
Andy 10647 Oct 27, 2005, 3:55 AM
Thread Re: [Andy] Global to display category dropdown...
mick31 10646 Oct 27, 2005, 4:32 AM
Thread Re: [mick31] Global to display category dropdown...
Andy 10683 Oct 27, 2005, 4:40 AM
Thread Re: [Andy] Global to display category dropdown...
mick31 10779 Oct 27, 2005, 4:47 AM
Thread Re: [mick31] Global to display category dropdown...
Andy 10907 Oct 27, 2005, 6:21 AM
Thread Re: [Andy] Global to display category dropdown...
mick31 10651 Oct 27, 2005, 7:25 AM
Post Re: [mick31] Global to display category dropdown...
Andy 10623 Oct 27, 2005, 7:27 AM
Thread Re: [Andy] Global to display category dropdown...
antoined 10621 Nov 26, 2005, 8:55 AM
Thread Re: [antoined] Global to display category dropdown...
SandraR 5129 Oct 14, 2006, 7:12 AM
Thread Re: [SandraR] Global to display category dropdown...
fuzzy logic 5068 Oct 14, 2006, 9:38 AM
Thread Re: [fuzzy logic] Global to display category dropdown...
SandraR 5095 Oct 14, 2006, 10:08 AM
Thread Re: [SandraR] Global to display category dropdown...
SandraR 5095 Nov 3, 2006, 5:38 PM
Thread Re: [SandraR] Global to display category dropdown...
Andy 5018 Nov 7, 2006, 6:54 AM
Thread Re: [Andy] Global to display category dropdown...
SandraR 5015 Nov 7, 2006, 4:11 PM
Thread Re: [SandraR] Global to display category dropdown...
Andy 5073 Nov 7, 2006, 4:53 PM
Post Re: [Andy] Global to display category dropdown...
SandraR 4936 Nov 7, 2006, 5:42 PM