Jump to:

7935 Posts in 1536 Topics by 943 members

DataObjectManager Module

SilverStripe Forums » DataObjectManager Module » Automatically set image caption as image title on ImageDataObjectManager

Discuss the DataObjectManager module, and the related ImageGallery module.

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

Page: 1
Go to End
Author Topic: 464 Views
  • purplespider
    Avatar
    Community Member
    81 Posts

    Automatically set image caption as image title on ImageDataObjectManager Link to this post

    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?

    464 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.