Member
Member
climberusa   2008-10-22, 15:43
#1

Hi. I've just completed a new site based on Zenphoto and Zenpage. These are awesome apps and much thanks goes to the developers! I'm having trouble understanding why on my albums page I can set the number of albums and images to display on a page but it doens't make sense. For example, On this page http://www.claesonkids.com/jeff-and-cortney I want to display 6 albums and 20 images. It semed to work when I only had 6 albums to begin with but as soon as I got more (now 14) it shows 6 albums but no images until you go to the last page. I have set the template to $firstPageImages = normalizeColumns('6', '20'); and in the admin I've set it up to show 6 albums and 20 images. I'm really not sure what to do here. I'd really appreciate some insight if anyone has some.

Thanks!

Administrator
Administrator
acrylian   2008-10-22, 16:01
#2

Thanks! You find info about that here: http://www.zenphoto.org/documentation/functions/_template-functions.php.html#functionnormalizeColumns

Member
Member
sbillard   2008-10-22, 16:50
#3

You are seeing the correct behavior. The thumbnails are displayed on pages filling the page. The definitions tell how many of each type of thumbnail are to fit on a page. The firstPageImages lets zenphoto know how many image thumbnails will fit on a page that has not completely filled with album thumbnails.

Member
Member
climberusa   2008-10-22, 19:15
#4

So is it possible to have my six albums per page and also show up to 20 images on that same page? I've read the docs and it still didn't quite make sense to me. Thank you both for your quick replies!

Administrator
Administrator
acrylian   2008-10-22, 19:46
#5

Sure, just remove the normalize columns function.

Member
Member
climberusa   2008-10-22, 21:14
#6

I removed it in albums.php but that made no difference.

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.