![]() |
|
Number of images in album - 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: Number of images in album (/thread-1056.html) |
Number of images in album - FUNimations - 2007-01-09 I've searched the forum on this as i was certain this would have been asked already, but nothing turned up. Number of images in album - apsk121 - 2007-01-10 Use this wherever you want the number of images to be displayed.
Number of images in album - mikeque - 2009-03-16 I am working on the album page of a theme, and I want to set the number of thumbnail images that display to be different values for the first page than for the additional pages: Something in this form: Number of images in album - sbillard - 2009-03-16 This will very likely break the pagination routines. What Number of images in album - mikeque - 2009-03-16 It seems like firtPageCount and firstPageImages work the same. I tried both with the same results. It worked just like you described, and I was able to make the first and successive pages display the correct number of images, no matter if the first or successive had greater numbers. And as you described, it breaks the navigation. The navigation seems to account for one less additional page. For example, if you end up with enough images for the first page and a second and third page, the navigation will only take you to the second one. Even though the 3rd one exists. So the next page count seems to get screwed up by 1. I'll see if I come up with a hack. Number of images in album - acrylian - 2009-03-17 I guess the problem is probably that these functions are meant to work with the total number of images in an album. Of course this will not lead to the right number of images on the second page if you change the number of images in between. You probably will need to write a customfunction or plugin to really get this working. Number of images in album - mikeque - 2009-03-17 In my design I only wanted a first and second page for each album, so it was easy enough to use the conditional getNumImages() for tha next navigation and manually appending the link with: ./page/2/. If I wanted more than a second page, or better flexibility, I would have to create a better function. If I have time to come back to this, I'll post the function. Number of images in album - mikeque - 2009-03-18 BTW, thanks for your help. The gallery is now up if you want to check it out: I wrote a blog item too, and mentioned Zenphoto: --Mike Number of images in album - azdustdevil - 2010-03-22 My albums will only show up to 15 images. Any way I can change this? Number of images in album - kagutsuchi - 2010-03-22 What do you mean that they will only show up to 15 images? You should explain a bit further. |