Member
Member
LondonLight.org   2014-08-13, 07:38
#1
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()): ?>

<a name="<?php echo getBareImageTitle(); ?>" class="image-anchor invisible"></a>
<div class="image-large">
"><?php printDefaultSizedImage(getImageTitle()); ?>

</div>
<?php endwhile; ?>


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

`
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!
Administrator
Administrator
acrylian   2014-08-13, 08:25
#2
You can't. That function is made for the thumb lists on album.php and index.php. There is a "half supported" pugin to get a similar page nav for single items:
https://github.com/acrylian/single_item_pagination
But this is for one item per page as well. image.php does not support several images per page.

You could use custom pages etc but that will break the rss feed that will not point to them for example.

So simple solution is indeed to use album.php and replace the thumbs with sized images. The only problem with that would be that you will need keep a single image.php page or create a kind of redirection to the album.php page. Said Image RSS feeds ink to the single image so they need to get somewhere.
Member
Member
LondonLight.org   2014-08-13, 08:47
#3
Thank you for clearing that up!
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.