Jump to content

Paginator affects other queries


Friedrich
 Share

Recommended Posts

Hello everybody.

I have a question to the paginator module. I think this is a often used module so I posted it in the "General Support".

On my page is a image-gallery with a lot of galleries. So I use the paginator there. It works also very well.

But then I have a "Last Changes"-section further down in the footer. If I go to page 2 in the image gallery, the entries of the "last changed" section always changes. 

How can I avoid this? How can I limit the paginator to one query?

$galleries = $page->children("sort=-created,limit=6");
...
galleries->renderPager()

Only this query should be affected. But it also has effect on this query:

$lastGalleries = $pages->find("template=gallery,sort=-created,limit=10");
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...