Hello,
I’m having a problem with adding new thumbnail fallbacks into my module. I wanted to create fallbacks for items where the attached media is hidden based on the resource class, and was able to do that by modifying the thumbnail helper and also adding the new fallbacks to my module’s module.config, ie
'fallbacks' => [
'fallbacks' => [
'Still Image' => ['thumbnails/image-fallback.png', 'myModule'],
'Moving Image' => ['thumbnails/video-fallback.png', 'myModule'],
'Sound' => ['thumbnails/audio-fallback.png', 'myModule'],
],
],
Got this all working fine, however when then when I tried to override the original fallbacks that are part of Omeka to match the files I’m using, it causes an error in the ThumbnailManager validateConfig: “Missing thumbnail fallback configuration.”
This seems to be completely independent of what I’m doing with what I’m messing around with the thumbnail helper. Even if I just set the module.config to this, it throws the error:
'fallbacks' => [
'fallbacks' => [
'image' => ['thumbnails/image-fallback.png', 'myModule'],
'video' => ['thumbnails/video-fallback.png', 'myModule'],
'audio' => ['thumbnails/audio-fallback.png', 'myModule'],
],
],
Thanks,
Joseph