![]() |
|
printPageListWithNav() adds extra page if used before sub-albums - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: printPageListWithNav() adds extra page if used before sub-albums (/thread-6420.html) |
printPageListWithNav() adds extra page if used before sub-albums - arvidtp - 2010-01-10 I want page navigation in my albums at both the top and bottom. Here's an example of an album with the problem (should have only 1 page, but at top says there are 2): Here's an example of one with multiple pages but without the problem so you can see where both navigation link sets are: Is this a known issue? If not, any ideas? I am using my own custom theme and my web host is 1and1.com. I am using php5. I my $firstPageImages = normalizeColumns('2', '6') printPageListWithNav() adds extra page if used before sub-albums - sbillard - 2010-01-10 Well, for starters, your printPageListWithNav() adds extra page if used before sub-albums - arvidtp - 2010-01-10 You're right - I should fix that - although actually the amount of columns I have is dependent on the width of the user's browser window (it re-flows), but I have to put something in for normalizeColumns() or else if there is a sub-album, individual image thumbs do not seem to appear on the same page below it, but instead only on the 2nd page. I guess a workaround for my issue is to have the pagination code twice after the thumbnails, but have one in a different DIV and placed above the thumbs with CSS via an absolute positioning or something similar. Just not as elegant as I imagine it could be Thanks, printPageListWithNav() adds extra page if used before sub-albums - acrylian - 2010-01-10 Maybe you should skip the normalize column stuff completely if the site is fluid. This normalizing is actually meant for themes with fixed widths so it looks "clean" if mixing images and subalbums. Btw, don't forget to submit the site to the showcase later..;-) printPageListWithNav() adds extra page if used before sub-albums - sbillard - 2010-01-10 normalizecolumns is required if you are going to mix album and image thumbs on the album "transition" page. Also, the numbers have to be "correct" or the pagination will be off. printPageListWithNav() adds extra page if used before sub-albums - arvidtp - 2010-01-12 All well and good and I'll take the showcase comment as a compliment But the main issue here for me is not that pagination works or does not work for me in this site, but rather that is behaves differently depending on where in the page's PHP code it is placed - ether before or after thumbnails - which seems sorta weird. I can't swear to it, but I think I have had the same same problem on some fixed width sites I have done with zenphoto. printPageListWithNav() adds extra page if used before sub-albums - sbillard - 2010-01-12 Well, it is my experience in general that if somethign is not working, almost anyting can be manifest. Zenphoto is context dependent. If the contexts are different the results are different. |