Home : Products : Gossamer Links : Discussions :

Products: Gossamer Links: Discussions: Re: [richonmaui] How can I put link category on the detailed page?: Edit Log

Here is the list of edits for this post
Re: [richonmaui] How can I put link category on the detailed page?
Mmm.. I guess so. Something like this should work; (I'm a bit rushed, so I apologise in advance if it doesn't work ;)).

Code:
sub {
my $id = $_[0];
my $db = $DB->table ('Category');
my $db2 = $DB->table ('CatLinks');

my @categoryIDs = $db2->select( ['CategoryID'],{ LinkID => $id } )->fetchrow_array;

my ($title_linked,$cat);
foreach (@categoryIDs) {
$cat = $db->get ($_, 'HASH', ['Name','Full_Name']);
$title_linked .= Links::Build::build ('title_linked', $cat->{Full_Name} . '/' . ' ');
}

return $title_linked;
}

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!

Last edited by:

Andy: Oct 21, 2004, 2:45 AM

Edit Log: