Gossamer Forum
Quote Reply
Hook Arguments
Could someone explain to me in very simple terms how to access tag values out of the hook @args?

For example:

I want to retreive the CategoryID as a scaler (integer), which is avaliable in a lot of templates, including browser_info.html.

my (@args) = @_; <- all hooks seem to have this in as default, why not $args???

my $args = shift;

my $cat_id = $args->{CategoryID}; ???

No matter what I try, including $tags = shift; I get an error about value not being a hashref and equalling "1".Crazy


http://www.iuni.com/...tware/web/index.html
Links Plugins
Subject Author Views Date
Thread; hot thread Hook Arguments Ian 9586 Jun 4, 2002, 1:03 PM
Thread; hot thread Re: [Ian] Hook Arguments
Paul 9347 Jun 4, 2002, 1:12 PM
Thread; hot thread Re: [Paul] Hook Arguments
Ian 9453 Jun 4, 2002, 1:27 PM
Thread; hot thread Re: [Ian] Hook Arguments
Paul 9393 Jun 4, 2002, 1:31 PM
Thread; hot thread Re: [Paul] Hook Arguments
Ian 9394 Jun 4, 2002, 1:33 PM
Thread; hot thread Re: [Ian] Hook Arguments
yogi 9405 Jun 5, 2002, 1:36 AM
Post; hot thread Re: [yogi] Hook Arguments
Ian 9365 Jun 5, 2002, 9:03 AM
Thread; hot thread Re: [Ian] Hook Arguments
Alex 9342 Jun 5, 2002, 10:26 AM
Post; hot thread Re: [Alex] Hook Arguments
Ian 9295 Jun 5, 2002, 10:39 AM
Thread; hot thread Re: [Alex] Hook Arguments
Ian 9358 Jun 5, 2002, 1:18 PM
Thread; hot thread Re: [Ian] Hook Arguments
Alex 9342 Jun 5, 2002, 1:27 PM
Post; hot thread Re: [Alex] Hook Arguments
Ian 9332 Jun 5, 2002, 1:30 PM
Thread; hot thread Re: [Alex] Hook Arguments
Ian 9331 Jun 5, 2002, 1:40 PM
Thread; hot thread Re: [Ian] Hook Arguments
Alex 9408 Jun 5, 2002, 1:48 PM
Thread; hot thread Re: [Alex] Hook Arguments
Ian 9464 Jun 5, 2002, 1:50 PM
Thread; hot thread Re: [Ian] Hook Arguments
Alex 9310 Jun 5, 2002, 2:00 PM
Post; hot thread Re: [Alex] Hook Arguments
Ian 9289 Jun 5, 2002, 2:04 PM
Thread; hot thread Re: [Alex] Hook Arguments
Paul 9279 Jun 5, 2002, 2:05 PM
Thread; hot thread Re: [Paul] Hook Arguments
Ian 9388 Jun 5, 2002, 2:09 PM
Thread; hot thread Re: [Ian] Hook Arguments
Paul 9285 Jun 5, 2002, 2:13 PM
Post; hot thread Re: [Paul] Hook Arguments
Ian 9244 Jun 5, 2002, 2:16 PM
Thread; hot thread Re: [Paul] Hook Arguments
Ian 9320 Jun 5, 2002, 2:51 PM
Thread; hot thread Re: [Ian] Hook Arguments
Paul 9296 Jun 5, 2002, 3:37 PM
Post; hot thread Re: [Paul] Hook Arguments
Ian 9250 Jun 5, 2002, 3:41 PM