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 7213 Oct 20, 2004, 8:05 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 7064 Oct 21, 2004, 12:09 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6993 Oct 21, 2004, 2:24 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 7018 Oct 21, 2004, 2:34 AM
Thread Post deleted by richonmaui
richonmaui 6949 Oct 21, 2004, 2:40 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 7055 Oct 21, 2004, 2:46 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6998 Oct 21, 2004, 2:57 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
richonmaui 7002 Oct 21, 2004, 3:29 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6988 Oct 21, 2004, 4:03 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 7008 Oct 21, 2004, 12:11 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 7067 Oct 21, 2004, 3:25 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6926 Oct 21, 2004, 3:55 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6995 Oct 21, 2004, 4:06 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6917 Oct 21, 2004, 4:27 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6947 Oct 21, 2004, 4:36 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6926 Oct 21, 2004, 4:56 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
fmp 6874 Jan 16, 2005, 1:30 AM
Post Re: [fmp] How can I put link category on the detailed page?
fmp 6812 Jan 17, 2005, 1:06 PM
Post Re: [afinlr] How can I put link category on the detailed page?
MJ_ 6551 Jul 29, 2006, 3:33 AM