pass an extra variable with g2_itemId
pathway
Joined: 2004-07-22
Posts: 11 |
![]() |
Hello, can i pass an extra variable with g2_itemId, so the link to image would be like this: http://localhost/test_site/gallery2/main.php?g2_itemId=688&g2_rt_d=$_GET[ "rt_id"] thank you in advance john |
|
suprsidr
![]()
Joined: 2005-04-17
Posts: 8339 |
![]() |
you can pass whatever you want, but gallery will only interpret and process the $_REQUEST variables it has been programmed to use. The easiest way would be to embed gallery into a page and have the page process your custom $_REQUEST variables or write a gallery module to handle them. I also use jQuery to append my extra variable ;) -s |
|
alecmyers
Joined: 2006-08-01
Posts: 4342 |
![]() |
Quote:
You'd have to add your own logic for whatever $_GET[ "rt_id"] is. You don't have to go quite that far. |
|
pathway
Joined: 2004-07-22
Posts: 11 |
![]() |
Thank you for your help, i will try and come back again |
|