torf Posted February 24 Posted February 24 Hi, I've got a Page Reference Field in my Backend, to choose multiple options from a list. Now my Frontend retrieves the data and some additonal graphics from those pages in the order it has been chosen in the backend. foreach($my_page_data->my_text_tag_field as $item) { echo "url({$item->graphic->url()}), "; } But as those graphics are layered in my frontend, I always need them in the order they are listed in my backend. $my_page_data->my_text_tag_field->sort() Just gives me an error. Does anybody know how to sort the data in frontend so that it matches the sorting order in the backend page list, not the sorting order in the page reference field? Thanks a lot
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