![]() |
|
Album and 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: Album and sub-albums (/thread-8663.html) |
Album and sub-albums - ClicClac - 2011-05-27 Hello, Generally, in album's page, the first page is for sub-albums and the follow pages are for the images. All the themes I've tried works like this. Is it possible to have the sub-albums (maybe one or two) AND the first images on page 1 of the album's page ? I'm using the 2 loops while (next_album()): while (next_image()): Album and sub-albums - acrylian - 2011-05-27 It is not exactly so. It depends on hte number of subalbums if the first pages shares subalbums and images. There is an option for this (on the themes options I think). Album and sub-albums - ClicClac - 2011-05-27 Thanks Acrylian, I've found this option. But it does not exactly do what I want. My theme is 4 thumb per line, 2 lines per page. (same for album or image) if sub-albums =< 4, I want the sub-albums on the first line, and the first image in the second line if sub-albums =< 8, I want the sub-albums on the first page, and the first image in the second page ... In other word, I want mixed album/image but with a "Carriage Return" ( or a < br / > ) after the last sub-albums. Album and sub-albums - acrylian - 2011-05-27 Ok, if you had said that at the beginning. As you noted yourself both are printed by separate loops, so add something after the album loop. You might either need to change the css and/or html. I can't answer that for you as it is your theme apparently. If you want the shared page depending on the number of subalbums, you need to set the options depending on that. You can set any option using `setOption()` on the theme directly to override admin settings. Please review the functions documentation on the exact parameters. Album and sub-albums - sbillard - 2011-05-28 If you do deviat from the way that Zenphoto does place albums first then images, the zenphoto pagination will not work so you will have to create your own. |