Jump to:

23376 Posts in 18295 Topics by 2867 members

General Questions

SilverStripe Forums » General Questions » How to get field value from DataObject in custom Image Class

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 259 Views
  • Pix
    Avatar
    Community Member
    130 Posts

    How to get field value from DataObject in custom Image Class Link to this post

    I have a custom Image Class which is attached to a DataObject, and I would like to know how to access the value of a checkbox field in the DataObject from the Image Class. I guess the DataObject is the owner/parent (?). I need to get the value from the Image Class so I know how to process the file when it is uploaded, but I don't know the right syntax or way of doing this. Is it possible?

    Thanks for any tips!

    259 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.