Member
Member
zubizuri   29-07-2011, 08:57
#1

I'm trying to have multiple album-loops on my start page like this:

`

`

The displayed results in the second loop seem to miss the results from the first loop. Is there a way to reset the query, so that i can start the second loop with the first entry again?

Member
Member
sbillard   29-07-2011, 15:18
#2

Since the next_album() function relies on global context it is impossible to successfully nest multiple loops as each loop will change the global context.

You will have to implement this using the object model instead. Alternatively you could save and restore the context, but to do that you will have to figure out all of what needs to be saved by understanding the workings of the next_album() loop itself.

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