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

ImageField Parameters


Go to End


2 Posts   2471 Views

Avatar
suntrop

Community Member, 141 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.