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

Re: [rsahertian] different info on detailed page depending on FatherID

Quote Reply
Re: [rsahertian] different info on detailed page depending on FatherID In reply to
Call this tag *before* your current stuff; (it won't output anything, just simply add the FeatherID tag)

Code:
sub {

my $ID = $_[0];
my $table = $DB->table('CatLinks');
my $sth = $table->select( { LinkID => $ID } ) || return "";

my $CatID;
while (my $hit = $sth->fetchrow_hashref) {
$CatID = $hit->{CategoryID};
}

$CatID ? return { FatherID => $CatID } : return '';

}

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Subject Author Views Date
Thread; hot thread different info on detailed page depending on FatherID rsahertian 10095 Sep 8, 2003, 4:42 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9926 Sep 8, 2003, 6:04 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
Andy 9837 Sep 8, 2003, 10:06 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9820 Sep 8, 2003, 1:03 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9823 Sep 8, 2003, 1:05 PM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9835 Sep 8, 2003, 1:19 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9777 Sep 8, 2003, 1:20 PM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9795 Sep 8, 2003, 1:24 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9815 Sep 8, 2003, 1:26 PM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9797 Sep 8, 2003, 1:32 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9835 Sep 8, 2003, 1:34 PM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9759 Sep 8, 2003, 2:01 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
rsahertian 9785 Sep 8, 2003, 2:32 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9789 Sep 9, 2003, 12:21 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9763 Sep 9, 2003, 3:48 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9797 Sep 9, 2003, 4:06 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9765 Sep 9, 2003, 4:09 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9803 Sep 9, 2003, 4:25 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9735 Sep 9, 2003, 4:38 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
rsahertian 9714 Sep 9, 2003, 7:14 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9703 Sep 9, 2003, 7:26 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 4215 Sep 9, 2003, 7:41 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 4279 Sep 9, 2003, 7:44 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 4165 Sep 9, 2003, 7:52 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 4202 Sep 9, 2003, 7:54 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 4186 Sep 9, 2003, 7:57 AM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 4252 Sep 9, 2003, 8:01 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 4203 Sep 9, 2003, 8:16 AM
Post; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 4117 Sep 9, 2003, 8:21 AM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9790 Sep 8, 2003, 1:42 PM
Thread; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9794 Sep 8, 2003, 1:44 PM
Thread; hot thread Re: [Andy] different info on detailed page depending on FatherID
rsahertian 9782 Sep 8, 2003, 1:50 PM
Post; hot thread Re: [rsahertian] different info on detailed page depending on FatherID
Andy 9754 Sep 8, 2003, 1:56 PM