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   363 Views

Avatar
Lazarus404

7 March 2013 at 6:52am Community Member, 71 Posts

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

7 March 2013 at 8:54am Forum Moderator, 51 Posts

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