Integration of a single album

textmarker

Joined: 2009-06-08
Posts: 2
Posted: Mon, 2009-06-08 08:57

I would like to display the content of an single album via the embedding functions. I would like to access the album by its id. To be more specific (usecase): I want to give the editor of my cms (contenido) the possibility to select an album that will be displayed at the end of a custom webpage. Each webpage should give the visitor of the website access to only the content of the selected album.

I tried several ways like i.e. loadEntitiesById() or getImageBlock() but none of these seems to provide the functionality I need.

I have been looking around the web for several DAYS now already and would be very thankful if anyone could provide me with some sample code. Is it really that complicated or am i just thinking to complicated?

Thanks in advance


Gallery version: 2.3

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Mon, 2009-06-08 10:57
 
textmarker

Joined: 2009-06-08
Posts: 2
Posted: Wed, 2009-06-10 12:04

Thanks for the link. I have been evaluating the script, but I think it does not provide the functionality I am looking for. What mediaBlock does is to create a completely new view of the elements of an album. It then simply "links" to the original gallery 2 items.

Since I want to use the standard templates of gallery 2 in the album overview already (with all its functionality i.e. slideshow, display keywords, display date, etc.), this seperate view is not working for me.

Any other suggestions?

 
suprsidr
suprsidr's picture

Joined: 2005-04-17
Posts: 8339
Posted: Wed, 2009-06-10 21:34

Why yes I do.
A simple embed script. The same concept as multiroot.
example

  • It functions just like gallery
  • you can style it any way you want
  • you can specify the album
  • you can specify the breadcrumb root
  • you can specify the theme
  • show/hide sidebarblock
  • show/hide login

you can clone it as many times as you want.
You can even have mediaBlock link to it instead of gallery by specifying the embedUri
Perfect!

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