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 7029 Oct 20, 2004, 8:05 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6893 Oct 21, 2004, 12:09 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6825 Oct 21, 2004, 2:24 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6848 Oct 21, 2004, 2:34 AM
Thread Post deleted by richonmaui
richonmaui 6785 Oct 21, 2004, 2:40 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6887 Oct 21, 2004, 2:46 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6828 Oct 21, 2004, 2:57 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
richonmaui 6831 Oct 21, 2004, 3:29 AM
Thread Re: [richonmaui] How can I put link category on the detailed page?
Andy 6817 Oct 21, 2004, 4:03 AM
Thread Re: [Andy] How can I put link category on the detailed page?
richonmaui 6839 Oct 21, 2004, 12:11 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6889 Oct 21, 2004, 3:25 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6759 Oct 21, 2004, 3:55 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6828 Oct 21, 2004, 4:06 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6748 Oct 21, 2004, 4:27 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
afinlr 6778 Oct 21, 2004, 4:36 PM
Thread Re: [afinlr] How can I put link category on the detailed page?
richonmaui 6755 Oct 21, 2004, 4:56 PM
Thread Re: [richonmaui] How can I put link category on the detailed page?
fmp 6702 Jan 16, 2005, 1:30 AM
Post Re: [fmp] How can I put link category on the detailed page?
fmp 6643 Jan 17, 2005, 1:06 PM
Post Re: [afinlr] How can I put link category on the detailed page?
MJ_ 6385 Jul 29, 2006, 3:33 AM