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 /

SS3.0 ImageField


Reply


2 Posts   380 Views

Avatar
Lazarus404

Community Member, 71 Posts

7 March 2013 at 6:52am

Hey guys,

So, I'm using SS 3.0 for a website and I need to create widgets that display images. In 2.4, I would have used ImageField to handle this, but this has been deprecated in 3.0... What should I be doing instead?

Thanks,
Lee

Avatar
frankmullenger

Forum Moderator, 53 Posts

7 March 2013 at 8:54am

Hey Lee, you probably want to use UploadField:
https://github.com/silverstripe/sapphire/blob/3.0/forms/ImageField.php#L23