glebster Posted August 14, 2012 Posted August 14, 2012 Hello! How can i change the sort order of IMAGES Field in the backend? When i add new image to the field IMAGES it displays at the end of the list. When i edit page i need to show new image at the start of the list. Please help PS. ProcessWire the best CMF i ever seen!!!
Soma Posted August 14, 2012 Posted August 14, 2012 Welcome! This is not currently possible if I remember correctly. You have to drag it (move) to first position after uploading. If you hover the colored bar of the item on the far right side you see and "to top", "top bottom" buttons that can be handy to move from bottom to top.
glebster Posted August 14, 2012 Author Posted August 14, 2012 Soma, thank you for reply! It's a pitty for this function I have a lot of images in one field and descriptions, so it would be comfortably for me with this feature in this field when i add new images
ryan Posted August 14, 2012 Posted August 14, 2012 I think that the push-to-top/push-to-bottom buttons that Soma mentioned are your best bet, as that makes a simple job of moving an image to the top of bottom. But you'll need to save the page with the image on it before you'll get that option. As another alternative, you might try just reversing the order that they are output on the front-end of your site: foreach($page->images->reverse() as $image) { echo "<img src='{$img->url}' />"; }
glebster Posted August 14, 2012 Author Posted August 14, 2012 Ryan, thank you for reply! In front end i use exactly what you advise It will be useful something the same in the backend, may be you have some ideas or its a point for a new realise of PW
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