Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

SS3 - Mini extension for sortable images (extends UploadField)


Reply


2 Posts   1065 Views

Avatar
banal

Community Member, 901 Posts

27 August 2012 at 9:05pm

Hello community.

I have been looking for a solution to enable sorting on multiple images uploaded via UploadField.
Sadly this didn't seem to exist (or I'm just too stupid to search properly?).

I wrote a small extension to the UploadField that adds sorting functionality to has_many relations. Download and instructions can be found here: https://github.com/bummzack/sortablefile

The implementation is still very basic. There's not much error-checking going on.. so if you encounter issues, please post them on github.
Hopefully this turns out to be useful for somebody... enjoy.

Avatar
max5k

Community Member, 8 Posts

28 September 2012 at 10:33am

Hello,

great, thanks a lot for releasing this!

Although this works like a charm,
i'd really love to see the possibility to sort items as a core feature in UploadField and GridField.
As it's one of the most common requirements when having for example multiple images, isn't it?

Cheers

Max