Hi
I'm making a module and I'm trying to do the following:
----------------
function getCMSFields_forPopup() {
$CardImageField = new ImageField( 'CardImage' );
$CardImageField->setAllowedExtensions(array( 'png' ));
$CardImageField->setFolderName( 'flashcards' );
$fields = new FieldSet();
$fields->push( new TextField( 'CardName' ) );
//$fields->push( new ImageField( 'CardImage' ) );
$fields->push( $CardImageField );
$fields->push( new TextField( 'CardContent' ) );
return $fields;
}
----------------
I could see in an earlier thread that setAllowedExtensions() and setFolderName() does not work on ImageField. Is there any other way to do this?
Are there any plans about fixing it?