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.

Customising the CMS /

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

Extending an image


Go to End


919 Views

Avatar
alana

Community Member, 7 Posts

1 February 2014 at 4:49am

Hi,

I'm new to Silverstripe and have sepnt the past few days running through the tutorials in an attempt to get to grips with customisation of the CMS,

I'm building a test page base don the tutorial with the following structure:

Staff Holder > StaffPage

I have managed to add the ability to upload an image for each staff member, what I'd now like to do is store some data against the image, for example a title for the image, a caption and a live switch.

It seems that the way to go is to create a class such as StaffImage which extends a DataObject type?

Is my logical and approach correct so far?

Thanks,

Alan.