getRequestVariables('itemId') doesn't get ItemId

coreyellsworth

Joined: 2013-10-27
Posts: 2
Posted: Sun, 2013-10-27 19:19

Hello,

I am working on a module and I have just about everything working except I cannot seem to get the itemId from the querystring, so the module works at a global level but won't narrow in on individual items. I've looked at many other modules as examples and they all seem to use the call:

$itemId = GalleryUtilities::getRequestVariables('itemId');

For some reason, this call does not seem to work for me. I have drilled into the album level and there is an itemId on the querystring, but the call above, when invoked from the controller, won't read it. Does anyone have any ideas?

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2013-10-27 19:39

You realize this is looking for g2_itemId in the query

-s
________________________________
All New jQuery Minislideshow for G2/G3

 
coreyellsworth

Joined: 2013-10-27
Posts: 2
Posted: Sun, 2013-10-27 20:23

I tried it both ways, but the doc says the g2_ will be stripped. At any rate, I did try it both ways with the same result. It doesn't read it.
Thanks for the quick reply though.

Corey

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2013-10-28 01:59

see if you can get it through ordinary means ie. $_REQUEST, maybe you're just on a redirect and it is not available anymore.

-s
________________________________
All New jQuery Minislideshow for G2/G3