Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [richonmaui] How can I put link category on the detailed page?

Quote Reply
Re: [richonmaui] How can I put link category on the detailed page? In reply to
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
Subject Author Views Date
Thread How can I put link category on the detailed page? richonmaui 11497 Oct 20, 2004, 8:05 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11369 Oct 21, 2004, 12:09 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 11209 Oct 21, 2004, 2:24 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11245 Oct 21, 2004, 2:34 AM
Thread Post deleted by richonmaui
richonmaui 11195 Oct 21, 2004, 2:40 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11269 Oct 21, 2004, 2:46 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 11219 Oct 21, 2004, 2:57 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
richonmaui 11226 Oct 21, 2004, 3:29 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 11210 Oct 21, 2004, 4:03 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 11381 Oct 21, 2004, 12:11 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 11310 Oct 21, 2004, 3:25 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 11137 Oct 21, 2004, 3:55 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 11210 Oct 21, 2004, 4:06 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 11144 Oct 21, 2004, 4:27 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 11165 Oct 21, 2004, 4:36 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 11134 Oct 21, 2004, 4:56 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
fmp 11095 Jan 16, 2005, 1:30 AM
Post Re: [fmp] How can I put link category on the detailed page?
fmp 11004 Jan 17, 2005, 1:06 PM
Post Re: [afinlr] How can I put link category on the detailed page?
MJ_ 10740 Jul 29, 2006, 3:33 AM