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

simple (I think) but useful (I know) global needed

Quote Reply
simple (I think) but useful (I know) global needed
Hi,

I'm working with Andy's Ask Frames plugin and I can't get the Title tag to work. This got me wondering. Since the ID tag is available how hard could it be to use a global that will pull the Title if given the ID?



Anyone know how to do this?

cdkrg

Able2Know :: Ajooja Directory
Quote Reply
Re: [cdkrg] simple (I think) but useful (I know) global needed In reply to
sub {

my $id=shift;

return $DB->table('Links')->select(['Title'],{ID=>$id})->fetchrow_array;

}

If you call the global title, you would call it with <%title($ID)%>

Last edited by:

afinlr: Oct 12, 2003, 9:21 AM
Quote Reply
Re: [afinlr] simple (I think) but useful (I know) global needed In reply to
Thanks mate! Works like a charm.

cdkrg

Able2Know :: Ajooja Directory