Quantcast
Channel: Zenphoto forum
Viewing all articles
Browse latest Browse all 2917

LondonLight.org on "How to have a working PageList when viewing multiple images at once?"

$
0
0

Hi!

Inspired by the way Boston.com shows The Big Picture,
http://www.boston.com/bigpicture/2014/08/supermoon_photographs_from_around_the_world.html
I decided to go for the same look in my gallery.
http://londonlight.org/zp/Styrkeprovet-2014/2014-08-02_vintage_cars_001-003.jpg

On my index page I use printAlbumMenu with $firstimagelink set to true so clicking on an album takes me right to the first image of that album:
<?php printAlbumMenu( 'list', true, '', '', '', '', "", 0, true, false, 40 ); ?>

image.php looks like this:

<?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>

<?php  while (next_image()): ?>
    <div class="image-box">
      <a name="<?php echo getBareImageTitle(); ?>" class="image-anchor invisible"></a>
      <div class="image-large">
        <a href="<?php echo html_encode(getFullImageURL()); ?>" title="<?php echo getBareImageTitle(); ?>"><?php printDefaultSizedImage(getImageTitle()); ?></a>
      </div>
    </div>
<?php endwhile; ?>

<div class="pagelist-bottom">
  <?php printPageListWithNav("« ".gettext("prev"), gettext("next")." »"); ?>
</div>

It's nice and works just the way I wanted it, prints images up to 900px wide and shrinks them fluidly for smaller screens (CSS). Except that I only tested it with a few images per album. Now I have an album with 100 images and I need them split up 20 per page. printPageListWithNav makes this:
« prev 1 2 3 4 5 next »
Problem is that clicking on the links to pages 2-5 understandably takes me to album.php!

My question is how do I make this pagelist work with my unusual image.php?

The only solution I can think of is to not use image.php but instead use album.php and then I would have the album thumbnails up to 900px large. Is this the only solution? Can you think of any problem I might run into here?

Thank you in advance!


Viewing all articles
Browse latest Browse all 2917

Trending Articles