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

Works in dynamic, but not static?

Quote Reply
Works in dynamic, but not static?
Does anyone have an idea why this wouldn't work in static, but works fine in dynamic?

<%Plugins::Category_Adverts::ShowAdvert($ID)%>

In the ShowAdvert sub, I'm using;

my $CatID = shift;

...to grab $ID passed on via the template...

Any ideas are appreciated.

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!
Quote Reply
Re: [Andy] Works in dynamic, but not static? In reply to
Which template?


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Works in dynamic, but not static? In reply to
pugdog,

I think Andy is refering to the category.html template.

Thanks.

mgeyman
Quote Reply
Re: [mgeyman] Works in dynamic, but not static? In reply to
Well... til I know for sure, ...


PUGDOG� Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Works in dynamic, but not static? In reply to
Yeah, the category.html template.

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!
Quote Reply
Re: [Andy] Works in dynamic, but not static? In reply to
Have you done a dump to make sure $ID is available?
Quote Reply
Re: [Paul] Works in dynamic, but not static? In reply to
Yeah, a <%GT::Template::dump%> shows the ID value fine.....it just when passing it to the sub routine in the plugin via <%Plugins::Category_Adverts::ShowAdvert($ID)%> , and then in the sub, getting it via;

my $CatID = shift;

Unsure

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!
Quote Reply
Re: [Andy] Works in dynamic, but not static? In reply to
So are you saying it isn't being passed in?
Quote Reply
Re: [Paul] Works in dynamic, but not static? In reply to
Yeah.

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!
Quote Reply
Re: [Andy] Works in dynamic, but not static? In reply to
Thanks for the replies everyone. I've got it to work ok now (with help from my debuggin info printed when the build process runs....which I didn't realise was showing...Laugh)

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!