Jump to content

Sorting page field like manually ordered on the page


pout
 Share

Recommended Posts

Hello,

I have a field of the type page. I want to use the order, I selected in the admin.
I do:

foreach($pages->find("id=".$page->fieldname) as $child) {

the IDs are in right order, but the found pages not. "sort=sort" is the sorting of the pages in the page tree, but I want the sorting I did manually for the field which is in the Database in table field_fieldname in "sort". Can I use this sorting in $pages->find? Or is there an other way?

Thanks.

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...