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

Name Linked in Global Help

Quote Reply
Name Linked in Global Help
This global returns a category name. I have tried to add the Name as being linked but cant do it. Any help please?

sub {
# returns the category name on detailed pages
my $tags = shift;
my $id = $tags->{'ID'};
my $db = $DB->table ('Category','CatLinks');
$db->select_options('LIMIT 1');
my $catid = $db->select ( { LinkID => $id }, ['Name'] )->fetchrow_array;
return $catid;
}

~ ERASER


Free JavaScripts @ Insight Eye
Quote Reply
Re: [Eraser] Name Linked in Global Help In reply to
Make sure $tags->{ID} is returning what you want. Try returning it to the template.

Adrian
Quote Reply
Re: [brewt] Name Linked in Global Help In reply to
I just found this post:

http://www.gossamer-threads.com/...orum.cgi?post=280015

I can get what I need from their without my global.

A very useful section of code, many thanks.

~ ERASER


Free JavaScripts @ Insight Eye