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.

DataObjectManager Module /

Discuss the DataObjectManager module, and the related ImageGallery module.

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

How to select images in an asset folder from CMS, for display on page?


Go to End


5 Posts   1217 Views

Avatar
vwd

Community Member, 166 Posts

6 April 2011 at 6:06pm

Edited: 06/04/2011 6:34pm

Hi,

I would like to select some images that are in a particular asset folder, from a tab in the CMS, and then have those images displayed on a page via the template.

I've familiarized myself with the functionality of FileDataObjectManager/Image Gallery module, but don't want to have to upload new files. Just want to select from existing images from an asset folder.

Any idea how to go about implementing such functionality?

Thanks very much.
VWD.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

7 April 2011 at 7:28am

In a FileDOM, one of the options is "choose existing" in the popup window when adding a record.

Avatar
vwd

Community Member, 166 Posts

7 April 2011 at 10:13am

So does the 'choose existing' option copy files into the asset folder you specify or does it just link to it in the record?

Thanks UncleCheese.

VWD.

Avatar
UncleCheese

Forum Moderator, 4102 Posts

8 April 2011 at 6:57am

If the upload folder for your DOM is different than the folder of the source file, it will copy it and create a new record.

Avatar
vwd

Community Member, 166 Posts

8 April 2011 at 4:29pm

Thanks for your response UncleCheese - got it.

VWD.