Hello everyone,
i have a Pagetype "SlideshowPage" where multiple Images should be added.
Therefor i have a Class "SlideshowImage extends Image"
which has_one "SlideshowPage"
SlideshowPage $has_many "SlideshowImages" => "SlideshowImage".
On the Page i have a IDOM:
$manager = new ImageDataObjectManager($this, 'SlideshowImages', 'SlideshowImage');
$fields->addFieldToTab('Root.Content.Main', $manager, 'Content');
Everything is working beautifully so far.
As long as i upload images directly from the SlideshowPage.
Now the Problem:
It seems to be impossible to add images previously uploaded via the Assetadmin.
(can see, them select them, continue but images are not attached. no ajax reponse erros, though)
Seems to me that this is because previously uploaded images have the ClassName "Image"
and Images uploaded via the IDOM are generated as "SlideshowImages"
Because when i change the className (of images added via AssetAdmin) manually in the "File" table, ("Image" to "SlideshowImage")
i can actually add them on the SlideshowPage via IDOM.
Is there any way to configure IDOM to add existing "Images" as "SlideshowImages" ?
Any help would be much appreciated!
cheers
Max