How can I create a gallery like view of managed albums

Zenphoto is just what I need, and I've been customising my own theme (based on zenpage default) and some of the code to tailor it to exactly meet my requirements. I'm quite experienced with PHP.

I've created a MyGallery page for logged in users and I would like to present a list of the albums that are private to that user, in the same format as the gallery page.

getManagedAlbumList() gives me a list of those album names but I guess I really need an array of the album objects.

Any hints/tips/pointers?

Thanks

John

Comments

  • Instantiate an album object for each name.
    `
    foreach ($albumlist as $foldername) {
    $album = new Album($_zp_gallery,$foldername);
    do whatever you wish with the album here
    }
    `
  • Many thanks. That's obvious now that I think how objects work in PHP.

    I'll be sure to submit my site for the showcase when it is ready.

    Thank you again.

    Regards

    John
Sign In or Register to comment.