advanced-nova-media-library
advanced-nova-media-library copied to clipboard
Call to a member function getMedia() on array
I use "nova-flexible-content" for images gallery and got error: Call to a member function getMedia() on array
Code:
Flexible::make('Gallery') ->addLayout('Simple content section', 'wysiwyg', [ Images::make('Computer case', 'computer-image-case') ->conversionOnIndexView('thumb') ]
Flexible without Images::make work fine. Images::make without Flexible work fine.
I'm experiencing the same issue. This is something that has been raised with Nova Flexible Content too. Would be great if a fix could be implemented between eachother.
Hi @iventru @chrispage1 I've take a look at the problem. This media package does not follow the nova-field idea perfectly. That's why is is not that easy to fix this issue. For flexible content this package needs to handle the resolution of field values better.
Hi @ebess - agreed. I've actually downloaded optix/media which I feel conforms much more nicely. I'm in the progress of writing a field plugin for this package, taking inspiration off of this one (at the moment much lighter)
Optix media works because its optional as to whether a media item is bound to a model or not.
This is happening also with Nova 2.7 without flexible content
I am also experiencing this conflict with Nova-Flexible. bump 😄
Any news?
Any news?
https://whitecube.github.io/nova-flexible-content/#/?id=usage-with-ebessadvanced-nova-media-library