Show all images on first page, grouped by album

Hi folks,

Is it possible to tweak the code so that the overview page shows all of the imager in my installation, one album after the other?

I'm using Zen Photo for an illustration portfolio so I figure it would be better to do this than require that extra click to get into each album - and there's not that many images either.

Sorry if this is answered elsewhere, I couldn't find anything elsewhere on the forum about this...

Cheers,

James

Comments

  • Ps.... I think there's a date problem... I didn't post this 3 years ago!
  • So is this possible???
  • Ok I've half got this working using the code below... it seems a bit funny still - maybe I've got some of the divs wrong?

    <?php include('header.php'); ?>

    <title><?php printGalleryTitle(); ?></title>

    <h2><?php echo getGalleryTitle(); ?></h2>

    <div class="primary">

    <div id="albums">
    <?php while (next_album()): ?>

    <div id="images">
    <?php while (next_image()): ?>
    <div class="image">
    <div class="imagethumb">" title="<?=getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></div>
    </div>
    <?php endwhile; ?>
    </div>
    <div class="album">
    <div class="albumdesc">
    <h3>" title="View album: <?=getAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
    </div>
    <p style="clear: both; ">

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

    </div>
    <?php include('footer.php'); ?>
  • Got it sorted :-)

    Now I've got all images from each album shown on my index page instead of just the one...

    <?php include('header.php'); ?>

    <h2><?php echo getGalleryTitle(); ?></h2>

    <div class="primary">
    <div id="images">

    <?php while (next_album()): ?>
    <?php while (next_image()): ?>
    <div class="image">
    <div class="imagethumb">" title="<?=getImageTitle();?>"><?php printImageThumb(getImageTitle()); ?></div>
    </div>
    <?php endwhile; ?>
    </div>

    <div class="albumdesc">
    <h3>" title="View album: <?=getAlbumTitle();?>"><?php printAlbumTitle(); ?></h3>
    <p style="clear: both; ">
    </div>
    <?php endwhile; ?>

    <br clear="both" /><br/>

    </div>
    </div>

    <?php include('footer.php'); ?>
  • This is partly what I am trying to do, except I do want people to click on an album, but then have it immediately show the first image, with menu up top. Right now they have to make an extra click to show an image within the gallery. Any ideas how to accomplish this?
  • thanx much for the above code. this is almost what I wanted for a portfolio website. but I would like to have all the images in the gallery on a special page, like view_all.php, not on the index.php. The only thing is, I don't know how I can make a working link to this page on all the other template pages...
Sign In or Register to comment.