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.

Data Model Questions /

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

Image in DataObject


Go to End


849 Views

Avatar
Haydo86

Community Member, 1 Post

25 January 2013 at 3:43pm

Hi,
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?
Thanks,
Hayden