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.

Customising the CMS /

Extending an image


Reply


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