Ah ok - try this:
get_cat_keywords
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:
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!
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!