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

uploadField sortable?


Reply


3 Posts   314 Views

Avatar
JonnyCash

Community Member, 4 Posts

26 July 2013 at 8:57pm

Hello,

As you can create a has_many relationship and link it to an uploadfield letting you add many items, is it possible to tell uploadfield to use a sort order??

Thanks for your reply!

Thomas S.

Avatar
copernican

Community Member, 189 Posts

27 July 2013 at 12:14am

To my knowledge, there is no way to sort images uploaded through a uploadField on a has_many relationship. I think your best/easiest solution would be to create a very simple dataobject containing an uploadField and manage them through a gridField using the [url=https://github.com/UndefinedOffset/SortableGridField?source=c]SortableGridField[/url] module.

Avatar
martbarr

Community Member, 53 Posts

12 October 2014 at 11:05am

https://github.com/bummzack/sortablefile