Jump to content

Pagination problem


Gazley
 Share

Recommended Posts

Hi there,

Before Soma jumps all over me, I've searched through the many threads that involve pagination :)

I've set things up as per the main Pagination article. When I click on the Next link, I get the existing page re-rendered. The URL at this stage says:

http://localhost:888...re/news/?page=2

I'm not clear whether I should be checking the page number and only processing certain items in the find() or whether the find() internally observes the page number internally.

It's worth pointing out the news is the parent page that summarises news items from a collection of child pages.

Any ideas what might be going wrong here?

Thanks.

  • Like 1
Link to comment
Share on other sites

I wondered about the ?page=2 because when I checked out the architects example, it said page2. Given what you said, I had put the page numbering against the child items template because that's where I assume it went. When I moved it to the summary page template, in this case 'news', it started working just fine.

Thanks for pointing me in the right direction :)

  • Like 1
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

×
×
  • Create New...