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

2 Posts   233 Views

Avatar
JonnyCash

26 July 2013 at 8:57pm Community Member, 4 Posts

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
IOTI

27 July 2013 at 12:14am Community Member, 189 Posts

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.