Hi,
Try tihs global.
get_category_details
Code:
sub {
my $link_id = $_[0];
my $cat_id = $DB->table('CatLinks')->select( ['CategoryID'], { LinkID => $link_id } )->fetchrow;
my $cat_name = $DB->table('Category')->select( ['Full_Name'], { ID => $cat_id } )->fetchrow;
my $cat_url = $CFG->{build_root_url} . '/' . $DB->table('Category')->as_url( $cat_name ) . '/' . $CFG->{build_index};
return { CategoryName => $cat_name, CategoryURL => $cat_url }
}
Call with:
Code:
<%get_category_details($ID)%>
In category: <a href="<%CategoryURL%>"><%CategoryName%></a>
Untested, but should do the trick =)
Cheers
Andy (mod)
andy@ultranerds.co.uk
IMPORTANT: I've now moved to ultranerds.co.uk, and the .com will no longer work! Want to give me something back for my help? Please see my
Amazon Wish List GLinks ULTRA Package (plugins total "value" $3,325 & rising, for just $350)| GLinks ULTRA Package PRO (plugins total "value" $5,625 & rising, for just $500) Support Forum | Links SQL Plugins | DMOZ Dumps | UltraNerds | ULTRAGLobals Plugin |
Pre-Made Template Sets |
FREE GLinks Plugins! Compare our different Plugin packages *new* Free CSS Templates