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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Customising the CMS /

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

ImageField "From File Store" dropdown - change sort order?


Go to End


969 Views

Avatar
Double-A-Ron

Community Member, 607 Posts

17 February 2013 at 8:52pm

v2.4

We have quite a lot of images now, most of which have been organised into folders in Files and Images.

When we use the ImageField object in the CMS, the dropdown that displays File store images order's everything alphabetically.

I want to modify this order so it orders by Folder first (so they are at the top) and alphabetically secondary.

Anyone know a way of doing this? I have found TreeDropdownField in sapphire/forms but can't see a way to arrange the resuts.