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

Global for subcats of fathercats

Quote Reply
Global for subcats of fathercats
Hi everybodyWink

i am lookíng for a Global like this one

sub { my $tags = shift;
my $cat_db = $DB->table('Category');
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~<a href="$CFG->{build_root_url}/$url">$root_cat"</a><br>~; } return $output; }

This Globals shows only the rootcat (FatherID => 0)

i want to show the subcats of fathercats on every category

can you help mePirate

marina Sly
Subject Author Views Date
Thread Global for subcats of fathercats mkoenig 3003 Nov 26, 2003, 2:16 AM
Thread Re: [mkoenig] Global for subcats of fathercats
Andy 2954 Nov 26, 2003, 3:39 AM
Thread Re: [Andy] Global for subcats of fathercats
mkoenig 2940 Nov 26, 2003, 4:01 AM
Thread Re: [mkoenig] Global for subcats of fathercats
Andy 2931 Nov 26, 2003, 4:08 AM
Thread Re: [Andy] Global for subcats of fathercats
mkoenig 2941 Nov 26, 2003, 4:20 AM
Post Re: [mkoenig] Global for subcats of fathercats
afinlr 2896 Nov 26, 2003, 4:47 PM
Post Re: [Andy] Global for subcats of fathercats
mkoenig 2890 Nov 27, 2003, 1:13 AM