Embed only sub album

quasipickle

Joined: 2008-11-17
Posts: 7
Posted: Thu, 2010-05-20 15:56

Hi everyone,

Background: I've got a gallery set up for my university. A number of different departments have their own sub albums. I'm trying to embed a particular department's sub album in their website.

I've think I've read all the Gallery embed articles in existence, but I haven't seen information anywhere on how to embed only 1 sub album. I've got it all working (well, I still need to modify a theme to get it looking flawless), but so far I've only been able to embed G2 at the root level, not a sub album level.

Is this possible?

Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-05-20 16:11

Easy...
Use my easy embed tool and utilize the Default AlbumId and the Breadcrumb RootId

OR

Use my mediaBlock.

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

 
quasipickle

Joined: 2008-11-17
Posts: 7
Posted: Thu, 2010-05-20 16:35

That was fairly easy. Looking at the generated code, the only part I needed to add to my existing code was GalleryCapabilities::set('defaultAlbumId',...);

Thanks!

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-05-20 16:46

that's depreciated use $gallery->setConfig('defaultAlbumId', 1400); instead.

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

 
quasipickle

Joined: 2008-11-17
Posts: 7
Posted: Thu, 2010-05-20 16:53

Alright - will do. Thanks.

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Thu, 2010-05-20 17:03

Now that you have your embedded pages, you can also use mediaBlock to display images or other media externally from these department's albums on external pages and link back to your newly embedded pages.

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