ZenphotoCMS Forum
Multiple Album Lists - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Multiple Album Lists (/thread-1740.html)



Multiple Album Lists - bferens - 2007-11-01

I am needing to do the normal place 6 or so images that represent albums on the page using the next_album() function. Then I want to place another list with 15 album titles in it. How do I reset the next_album() function to start back at the first album? I am currently on the index.php page. Thanks to whoever can help me out.




Multiple Album Lists - trisweb - 2007-11-01

It resets itself :-) That should work fine. You can do this if you want and it should also work, printing four sets of (the same) albums:

`while(next_album()) { ... }

while(next_album()) { ... }

while(next_album()) { ... }

while(next_album()) { ... }`

next_album(true); will print all albums, if that's what you're looking for. At the moment there's no way to specify the exact number to loop through, but there should be... hmm...




Multiple Album Lists - jhenryexp - 2008-10-04

I am trying to do something similar on my index page - 3 albums (with thumbs) on left and then a complete list of all albums on the right (minus thumbs). But next_album() is not reseting itself when it is called the second time and is starting from where it left off in the first call.

Here is the first call;

...

This is the second call;

[*]...




Multiple Album Lists - BertSimons - 2008-10-04

jhenryexp, simple solution might be to do a second but empty loop after the first which just finishes the uncomplete first one and then to call a third one :

´
...do your thing

do your thing

´