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.

Customising the CMS /

Image List


Reply


2 Posts   888 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, 46 Posts

8 September 2011 at 1:24am

hi mawk,

Maybe [url]http://www.leftandmain.com/silverstripe-modules/2011/08/25/kickassets/[/url] could help?