Member
Member
ClicClac   27-05-2011, 06:07
#1

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()):

Administrator
Administrator
acrylian   27-05-2011, 09:37
#2

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).

Member
Member
ClicClac   27-05-2011, 18:34
#3

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.

Administrator
Administrator
acrylian   27-05-2011, 18:59
#4

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.

Member
Member
sbillard   28-05-2011, 14:35
#5

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.

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