Hi,
The easiest way, would be a global:
get_cat_info
return { cat => $DB->table("Category")->get( { ID => $_[0] } ) }
}
I think you should have access to CatLinks.CategoryID from the template - so then do:
<%DUMP cat%>
Failing that working, we would just need to do one extra look up to find the category ID its in (from the CatLinks table)
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!
The easiest way, would be a global:
get_cat_info
Code:
sub { return { cat => $DB->table("Category")->get( { ID => $_[0] } ) }
}
I think you should have access to CatLinks.CategoryID from the template - so then do:
Code:
<%get_cat_info($CatLinks.CategoryID)%> <%DUMP cat%>
Failing that working, we would just need to do one extra look up to find the category ID its in (from the CatLinks table)
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!