1 album per page

I would like to have just one album displayed when you go to my home page, and below the album would be links to page 1234...etc. Each page would also just have one album. I changed the albums per page option to 1 in the admin panel, but it doesn't seem to work with any of the themes. I was wondering if this was possible and if someone could help me. Thanks.

Comments

  • acrylian Administrator, Developer
    Actually you did it right. That it does not work is related to the normalizeColumns() function that is actually used so the columns look equal if having albums with images and subalbums together (see the functions guid and search the forum). However it seems that that function is unecessarily called also on the index pages as well. Thought we had removed that.

    So the fix is to remove the call `$firstPageImages = normalizeColumns('2', '5');` (or the like) at the beginning of your theme's index page file (which that is exaclty depends on the theme).

    Update: It is actually usful on the index page as it normalizes the standard of 5 albums per page to 6 if there are no images to display. As said remove it on the theme files.
  • That worked! Thanks for your help! I may have some more questions later, but for now I'll keep working on it. ZP is quite addictive and fun!
  • I've got another question. I've been trying to get colorbox to open from the albums page. I've searched the forum and spent several hours reading the docs and experimenting, and I got as far as having colorbox pop up from the album thumbs, but it doesn't have borders and it's positioned wrong. I don't know enough about it to figure how it works. I know the solution has to be close, so any help would be greatly appreciated. Thanks.
  • acrylian Administrator, Developer
    You probably did not incldue the css file for it. Look at the Zenpage theme (image.php) and the Colorbox site itself for the correct way.

    I suppose you mean "image thumbs" as "album thumbs" represent an album, not the image within (just to avoid missunderstandings in the future).
  • I'll have another go at it. Yes, I meant "image thumbs". Thanks, acrylian.
  • It worked! Yep, it was the link to the colorbox css file that was missing. So obvious, but my brain must have shutdown last night after too many hours. This is a great way to start my weekend. Thanks again, acrylian!
  • I'm making good progress with my ZenPhoto site and getting close to setting it up the way I want, but I have another question. I'm trying not to have the image page at all, and I'm having trouble getting the search results to go to the album page. Putting getAlbumLinkURL just takes me back to the gallery page. I'm sure there's something simple I'm missing. Any help would be appreciated. Thanks.
  • Never mind the previous question. I was able to get the search page thumbs to open up in colorbox, which I'm happy with.
Sign In or Register to comment.