display multiple galleries on one page?

Ok the same client who I was working with before for the image popup has a new request. He wants to display all the galleries on one page. In other words he wants categories for his photos like; promo, live, fans etc... & he wants all of those galleries on one page with the category title to separate the different sections. An illustrated Example is this site : http://spokenmusic.com/photos.php
He wants something almost identical in theory to that one. Originally I just had all photos no what style (category they should be in) inside one gallery called main. But apparently he wants all photos in one master displaying all thumbnails/category titles etc.
If there any way to do this? I sure hope so, thanks for any & all help in advance.

Comments

  • Of course you can do this, it is software after all.

    First, use `next_album(true)` to loop through all the albums without pagination.
    Then within the album loop use `next_image(true)` to loop through the images within the album with no pagination.

    For most themes what this amounts to is moving the next_image loop to within the next_album loop, changing the parameters to `true`, and removing the code that displays the album thumbnails.
  • Awesome sbillard! Thank you so much, worked like a charm! Hoorah! Zenphoto, making my life easier one day at a time.
  • Hi there, I'm trying to do the same thing as well- to the effect of marianovivanco.com where I just show the first 5 thumbs of each album on my gallery page rather than one main image.

    but I'm not quite sure where I should make the edits. In the theme by stopdesign, the gallery php only shows next_album, and the album page I can find both next album and image, which I've both switched to true.. but nothing looked different.

    Should I move the code from the album page and paste it onto the gallery page? I tried putting the album code inside the gallery loop, and now there are placeholders there but it says "Fatal error: Call to a member function isDynamic() on a non-object in ../zp-core/template-functions.php on line 458"

    I haven't removed the code that displays the album thumbnails yet, but is this on the right track?
  • acrylian Administrator, Developer
    IF you want to show the thumbs of the images within an album, you need to move the next_image loop within the next_album loop. Please also read our theming tutorial to get familiar with the basics of Zenphoto themes.
Sign In or Register to comment.