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

Products: Gossamer Links: Development, Plugins and Globals: Re: [sahertianr] Global to show Main Category (Father) of the subcategories.: Edit Log

Here is the list of edits for this post
Re: [sahertianr] Global to show Main Category (Father) of the subcategories.
Ah, I see what you mean now =)

Try the same global (you can call it the same way too), with;

sub {
my $ID = $_[0];
my $FATHERID = $DB->table('CatLinks')->select( ['CategoryID'], { LinkID => $ID } )->fetchrow;
my $name = $DB->table('Category')->select( ['Full_Name'], { ID => $FATHERID })->fetchrow;

my @name_slice = split /\//, $name;

$name_slice[0] ? return $name_slice[0] : return 'No name found'; }

Andy (mod)
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!

Last edited by:

Andy: Oct 2, 2004, 9:13 AM

Edit Log: