Private sub-album thumb location on pages

I have an album with images in several pages and one private sub-album. The sub-album always shows up in the album as the first thumb, labeled as expected, private.

For aesthetics and other reasons, I would like the (private) sub-album thumb to show up as the last photo on the last page, instead of the first thumb on the first page.

Is there a way to do this?

Comments

  • acrylian Administrator, Developer
    You will have to change your album.php theme page. It always lists sub albums first if available and then images. Just reverse the order of the `next_album` and `next_image` loops.
  • marcov Member
    Oh, that was the first thing I tried. It did change the location of the sub-album thumb from the first thumb on page one, to the last thumb but still on page one, not on the last page.

    Here's the code I have:

    <!-- Images -->
    <?php while (next_image(false, $firstPageImages)): ?>
    <div class="thumb">
    " title="<?php echo getImageTitle();?>">
    <?php printImageThumb(getImageTitle()); ?>


    <p class="caption"><?php echo getBareImageTitle();?></p>
    </div>
    <?php endwhile; ?>

    <!-- Albums -->
    <?php while (next_album()): ?>
    <div class="thumb">
    " title="<?php echo getAlbumTitle();?>">
    <?php printAlbumThumbImage(getAlbumTitle()); ?>


    <p class="caption">
    " title="<?php echo getAlbumTitle();?>">
    <?php printAlbumTitle(); ?>

    </p>
    </div>
    <?php endwhile; ?>
  • acrylian Administrator, Developer
    Sorry, I don't know any way to tell the album on which page it should appear. You can try to remove the `normalizeColumn()` function (see the numerous threads and the doc).
  • You will have to remove the album loop and manually insert the thumb wherever you wish it to appear.
  • marcov Member
    I already tried removing the normalizeColum() function - it did not fix the problem.
    I also read the forum and docs.

    It seems though that the sub-album feature still causes some problems or unexpected behavior. One was fixed in a recent release (the password problem). Other problems, like the incorrect number if thumbs on the first album page, or the famous "transition" page that has both album ad image thumbs, are still there. For me this means ignoring the sub-album feature, as pages with incomplete number of thumbs on them (except maybe the last one) is not very pleasing for the visitors.

    Anyway, thanks for the feedback, I'll keep trying to find a solution, other than creating a main album from the sub-album.
Sign In or Register to comment.