Jump to content

regarding api $page->prev and $page->next


adrianmak
 Share

Recommended Posts

These two api is convenience for developer for next adjacent page of current page.

But it only work for, in the order of pages creation

How could it possible for, let say

I generated a list of pages and sorted by a date field. That's the actual page order listed in the back-end is different from the front-end.

if I used $page->prev and $page->next, it reflect the order of the back-end but not the front-end (pages sorted by date)

  • 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

  • Recently Browsing   0 members

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