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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Data Model Questions /

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

Image in DataObject

Go to End



Community Member, 1 Post

25 January 2013 at 3:43pm

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?