I'm currently embedding gallery in my joomla pages by calling the gallery2Embed.php file. This works fine, but always directs to the gallery/main.php. Is there a way to directly call an album or item page in embedded mode? i.e. I'd like to have a menu button direct the user to a specfic album, or be able to place a new album under an article.
Thanks
Posts: 8339
in gallery2Embed.php change the embedUri to that of the url to gallery2Embed.php
my easy embed tool does that for you.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 4
So, am I understanding this correctly? Using your script, and the GalleryEmbed init function, the three parameters are:
a) path to embed.php {../gallery2/embed.php}
b) g2Uri - path to gallery install {../gallery2/main.php}
c) embedUri - location of the gallery2Embedded.php file {..gallery2/gallery2Embedded.php}
I have this working fine to embed the body of /gallery/main.php in my web page , but is there a way to instead display an album page? i.e. /gallery2/main.php?g2_itemId=35
Posts: 8339
My tool allows for you to set the default breadcrumbId and the default albumId so you could create many different views of your gallery.
There is also mediaBlock.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 4
Thanks, I looked right over that option. I think I'm doing something similar now, by calling:
GalleryCapabilities::set('defaultAlbumId', 31);
Posts: 8339
That will work, but is depreciated use:
just before handleRequest() instead.
-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2
Posts: 4
Thanks a bunch!