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

Image List


Go to End


2 Posts   1505 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