Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Re: [Eraser] Getting Category info Via an ID

Quote Reply
Re: [Eraser] Getting Category info Via an ID In reply to
Hi,

Not 100% sure what you are trying to do? If you are just passing in a category ID, you could use:

<%get_category_details(1234)%> (where 1234 is the category you want to get the details for)

Global: get_category_details

Code:
sub {
my $cat = $DB->table('Category')->select( { ID => $_[0] } )->fetchrow_hashref;
return $cat;
}

Is that what your after?

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!
Subject Author Views Date
Thread Getting Category info Via an ID Eraser 3391 Apr 20, 2008, 11:41 AM
Thread Re: [Eraser] Getting Category info Via an ID
Andy 3321 Apr 20, 2008, 11:53 AM
Thread Re: [Andy] Getting Category info Via an ID
Eraser 3313 Apr 20, 2008, 12:03 PM
Post Re: [Eraser] Getting Category info Via an ID
Andy 3297 Apr 20, 2008, 12:14 PM