Plugin form miss the definition of widget in their metaclass attribute widgets , SmartMedia probably can not resolve this since it is probably related to Django Admin/CMS plugin. We have to define this widget on plugin forms;
Once defined, the form field endorse SmartMedia widget render but it miss needed CSS+Js as it is reported in SmartMedia issue 12 (as given in introduction);
Once asset have been forced on the plugin form, there is a problem with the widget template that miss variable(s) to be able to display the preview;
Album and Slider are not subject to this since they work a little bit differently with their plugin form.
Describe the bug Card, Hero and Container plugins does not have the correct layout on input file as it could be expected from SmartMediaField usage.
It is related to this SmartMedia issue: https://github.com/sveetch/django-smart-media/issues/12
To Reproduce
Expected behavior All input file managed with SmartMediaField should look like the preview from https://django-smart-media.readthedocs.io/en/latest/references.html#preview
Desktop (If applicable):
Versions:
Additional context There is two problems here:
widgets
, SmartMedia probably can not resolve this since it is probably related to Django Admin/CMS plugin. We have to define this widget on plugin forms;Album and Slider are not subject to this since they work a little bit differently with their plugin form.