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

Automatically set image caption as image title on ImageDataObjectManager


Go to End


1084 Views

Avatar
purplespider

Community Member, 89 Posts

28 September 2011 at 5:37am

I have an ImageDataObjectManager that is managing some Image DataObjects, which consist of an Image and a Caption field.

Often the caption of the image is just the image's filename, which is converted quite nicely into the images's Title tag, but how can I get my caption field to automatically be set as the Image()->Title tag when adding it via the ImageDataObjectManager?