Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Re: [Knubbel] full_name question

Quote Reply
Re: [Knubbel] full_name question In reply to
Ah ok - try this:

get_cat_keywords
Code:
sub {

my $link_id = $_[0];

my $cat_id = $DB->table('CatLinks')->select( ['CategoryID'], { LinkID => $link_id } )->fetchrow;
my @cat_name_split = split /\//, $DB->table('Category')->select( ['Full_Name'], { ID => $cat_id } )->fetchrow;

return { CategoryName => join(',',@cat_name_split) }

}

Call with:

Code:
<meta name="keywords" content="<%get_cat_keywords($ID)%>" />

That should do it =)

Cheers

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: Aug 14, 2008, 6:01 AM
Subject Author Views Date
Thread full_name question Knubbel 5533 Aug 14, 2008, 5:14 AM
Thread Re: [Knubbel] full_name question
Andy 5447 Aug 14, 2008, 5:21 AM
Thread Re: [Andy] full_name question
Knubbel 5456 Aug 14, 2008, 5:25 AM
Thread Re: [Knubbel] full_name question
Andy 5450 Aug 14, 2008, 5:32 AM
Thread Re: [Andy] full_name question
Knubbel 5436 Aug 14, 2008, 5:42 AM
Thread Re: [Knubbel] full_name question
Andy 5422 Aug 14, 2008, 5:54 AM
Thread Re: [Andy] full_name question
Knubbel 5431 Aug 14, 2008, 6:00 AM
Thread Re: [Knubbel] full_name question
Andy 5426 Aug 14, 2008, 6:02 AM
Thread Re: [Andy] full_name question
Knubbel 5451 Aug 14, 2008, 6:06 AM
Thread Re: [Knubbel] full_name question
Andy 5428 Aug 14, 2008, 6:09 AM
Post Re: [Andy] full_name question
Knubbel 5418 Aug 14, 2008, 7:30 AM