albums and image thumbnails on the same page

I've edited zenphoto quite a bit to my needs... however, there's still one issue I can't figure out and it is how to display sub-albums and the first sub-album's thumbnails on the same page...to explain this issue better... this is how my albums are structured:

artist1 (folder) -> album1 (sub-folder) -> images
artist1 (folder) -> album2 (sub-folder) -> images
etc...

...when you click on the artist1 link (top-level album)... there's a list of the artists' albums on the right hand side of the page and I would like to display a list of thumbnails from the artist's first album on the right hand side...

is that possible? any help would be appreciated...

thanks in advance...

Comments

  • I gather that you are doing your own theme. The supplied ones all put album thumbs and image thumbs together on a page (providing that things "fit").

    Look at one of the themes for a references to `$firstPageImages`.
  • yes, I'm making my own theme... I think that's kind of the problem that albums and sub-albums are being handled within one file (album.php)...

    here's some to code to explain my issue better:

    on the left hand side I display a list of sub-albums:

    <?php while (next_album()): ?>
    " title="View album:
    <?php echo getAlbumTitle();?>">
    <?php printAlbumTitle(); ?>

    <?php endwhile; ?>

    this all works well...
    when I click on one of the sub-album links in the list...

    a list of the specific sub-album image thumbnails is displayed in the right hand side region...

    <?php while (next_image(false, $firstPageImages)): ?>
    <div class="image">
    <div class="imagethumb">
    " title="<?php echo getImageTitle();?>">
    <div><?php printImageThumb(getImageTitle()); ?></div>

    </div>
    </div>
    <?php endwhile; ?>

    this all works well...

    now, as you can see... there are two blocks of code within one file that are process in two different depth levels of (sub)albums... this confuses me because I can't figure out how to display (album1) thumbnails in the right hand region without clicking on the first (album1)link on the left hand side...

    I hope this all makes sense...
  • I don't think it is a 'problem' that "albums and sub-albums are being handled within one file (album.php)...". that is a design feature. There really is no difference between an "album" and a "subalbum".
  • well, I didn't mean it was a 'problem'... it's just a feature that I don't understand enough to modify to my needs... I'm trying to solve how to display a list of sub-albums and a list of the first sub-album's thumbnails...

    I can see that the 'album.php' contains code for displaying a list of sub-albums as well as the code for displaying the selected sub-album's thumbnails... but both pieces of code are process at 'different times'... and I don't know how to display the list of sub-albums and the first sub-album's image thumbnails at the same time...

    Here's an image of what I'm trying to accomplish....
    http://testsite.thinktechnology.ca/temp.png

    thanks for your patience with me...
  • acrylian Administrator, Developer
    So you want a album navigation on the left and the thumbs of a selected album on the right? Please take a look at this thread if that is what you want: http://www.zenphoto.org/support/topic.php?id=2317&replies=5#post-13862
Sign In or Register to comment.