Jump to:

3460 Posts in 1064 Topics by 739 members

Data Model Questions

SilverStripe Forums » Data Model Questions » Image in DataObject

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

Page: 1
Go to End
Author Topic: 306 Views
  • Haydo86
    Community Member
    1 Post

    Image in DataObject Link to this post

    I'm trying to create a data object called Person, which will contain a name, description and image. I can create the data object, and all is well, but I am stuck on writing the GetCMSFields function.

    I have tried adding it in as I do the text sections, and I can create an instance of the dataobject easily in the CMS, but when I try to edit it (so I can add an image), a fatal error occurs.

    Can anyone help me here?

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.