Jump to content

How to sort according to order of page in page lister of admin?


Recommended Posts

  • 1 year later...

Hi guys. I have a similar problem and dug out this thread, maybe some processwire wizzard out there can help me =D

I «gather» pages and subpages with a certain checkbox checked with $pages->find("checkbox=1"), ordered according to the page tree. sort=sort works quite right but it messes up the order of subpages.

page1 (checked)
   –> subpage2.1 (checked)
page4 (checked)

Now what I want to get is page1 | subpage2.1 | page4 but what I get with sort=sort is subpage2.1 | page1 | page4

Any ideas?

Cheers, Nuél

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

  • Create New...