pout Posted October 10, 2018 Posted October 10, 2018 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.
BitPoet Posted October 10, 2018 Posted October 10, 2018 Why call $pages->find at all? foreach($page->fieldname as $child) { should do the job.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now