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:

Customising the CMS /

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

Image List


Go to End


2 Posts   1228 Views

Avatar
mawk

Community Member, 4 Posts

5 September 2011 at 9:14am

Hi I would like to create a field on a custom page that will allow me to select multiple images from a specific folder in the assets folder. It can either be a field that just selects all the images in the folder or a list that lets me select items in that folder. I've attempted to use the TreeMultiselectField but was unable to set a source in the media library or was setting it incorrectly. I also tried to use an ImageDataObjectManager and could set the upload folder but not the source folder. This left me seeing all images uploaded. I'm not sure which is a better approach or If I've just got it all wrong to begin with. If you have any suggestions your help would be much appreciated.

Avatar
wmk

Community Member, 87 Posts

8 September 2011 at 1:24am