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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

General Questions /

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

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

SS3 - Mini extension for sortable images (extends UploadField)


Go to End


2 Posts   2071 Views

Avatar
bummzack

Community Member, 904 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
mgherkins

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