getting the ID of an album
MushyP
Joined: 2008-09-09
Posts: 7 |
Posted: Sun, 2008-10-05 15:16 |
Hello, I have spent all day trying to study how to creat a module, getting there slowly I think. I have follow the guide at http://codex.gallery2.org/Gallery2:Module_Development_Tutorial. I have my module almost working. The only bit I can't figure out is how to load the images of a particular album rather than the default which is given in the tutorial. Quote:
list ($ret, $albumId) = GalleryCoreApi::getDefaultAlbumId(); is obviously what is producing the default album ID. How would I change this so that it inserts the id from the ablum in the url (ie. /gallery2/main.php?g2_view=polaroid.Polaroid&g2_itemId=2884) Thanks for any assistance!! |
|