Hello,
in multiple projects we extend the Image Class to add some Fields like "Caption" etc.
class CustomImage extends Image{
//add fields, override getCMSFields() etc.
}
Now on a PageType which has many of those CustomImages those are managed with an uploadField
$has_many = array('CustomImages' => 'CustomImage')
$fields->addFieldToTab("Root.Main", new UploadField('CustomImages', 'Custom Images'), 'Content');
This works fine and Images upload via the uploadfield get the ClassName "CustomImage" in the "File" tab.
Problem:
When browsing for files to add, instead of uploading them directly, only Files with ClassName "CustomImage" show up.
Files uploaded in the Files-section however got the default ClassName "Image" and are not showing up within folders.
Is there any way to use my custom Image type while still being able to add Images in the uploadfield via the Browser which
were added previously in the Files-section?
Merci d'advance :)
Cheers
Max