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 /

ImageField Parameters


Reply


2 Posts   1750 Views

Avatar
suntrop

Community Member, 131 Posts

27 August 2010 at 1:15am

I want some specific pictures to be uploaded into the proper folder. After some googleing I came across this page

http://doc.silverstripe.org/imagefield

and luckily the last parameter is what I need :-)

But what are all the other ones? First I tried to look through the API docs but I couldn't find any information what the parameters are. Just this page http://api.silverstripe.org/2.4/forms/fields-files/ImageField.html
But that isn't helpful in any way I need it :(

Avatar
Puppy

Community Member, 10 Posts

31 August 2010 at 12:56am

It is a subclass of an FileIFrameField.

http://api.silverstripe.org/2.4/forms/fields-files/FileIFrameField.html

If you run into a problem next time, search your /sapphire/ directory for the class name and you will be able to see how it was made.