$gallery->album->getPhotoId($index)
jean2399
Joined: 2003-10-31
Posts: 8 |
Posted: Sun, 2004-02-01 00:55 |
Dear Gallery ppl! http://www.stock-photography.bz I am trying to add my shopping cart to my gallery. It works more or less fine by now, allthough I have a small problem. I can add the following line to the inline_albumthumb.footer: <input type=button value="Add / Remove" onclick=addCart('<?=$gallery->album->getPhotoId($index)?>')> but I cannot add it to the inline_foto.footer. This line adds the Add/Remove button below the picture. While adding it to the inline_foto.footer I get the following message on the corresponding output page: Fatal error: Call to a member function on a non-object in classes/Album.php on line 1063 The header of the inline_foto.footer file says I can use the $gallery->album->getPhotoId($index) variable, but it does not seem to be true in a simple way. Anyone? |
|
Posts: 8194
Moving to Customizations.