Call Album pages within Joomla

RickyH

Joined: 2010-04-25
Posts: 4
Posted: Sun, 2010-04-25 14:59

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Sun, 2010-04-25 17:02

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

 
RickyH

Joined: 2010-04-25
Posts: 4
Posted: Mon, 2010-04-26 14:26

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

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-04-27 00:59

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

 
RickyH

Joined: 2010-04-25
Posts: 4
Posted: Tue, 2010-04-27 01:26

Thanks, I looked right over that option. I think I'm doing something similar now, by calling:

GalleryCapabilities::set('defaultAlbumId', 31);

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Tue, 2010-04-27 01:28

That will work, but is depreciated use:

$gallery->setConfig('defaultAlbumId', 397);
$gallery->setConfig('breadcrumbRootId', 397);

just before handleRequest() instead.

-s
FlashYourWeb and Your Gallery with The E2 XML Media Player for Gallery2

 
RickyH

Joined: 2010-04-25
Posts: 4
Posted: Tue, 2010-04-27 01:38

Thanks a bunch!