You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try to integrate a form field of the type ElFinderType in my EasyAdmin crud controller I only get a simple text field without any function.
Even trying to integrate the infos related to https://stackoverflow.com/questions/64480120/using-elfinder-on-symfony-i-cant-select-images or #406 (incl. overwriting the templates and converting the given infos to the updated EasyAdmin 3.x/4.x configuration) does not help in any way. It also seems that the widget template (neither the original one or the own in templates/bundles/FMElFinderBundle/Form) seems not to be used.
after there was no browser console output I did a quick check with a standard (non EasyAdmin) form including a field of the type ElFinder::class which works as expected so I took a deeper look into my config.
Finally I got the reason why the widget template hasn't been loaded: the widget form type template must be added to the CRUD controller (similar to the EasyAdmin 2 config).
I did it with the following code in my CrudController:
With this done the form renders the correct ElFinder form widget and one can start from this point to change the widget template to fit the personal needs etc.
So maybe you can extend the docs with a section for EasyAdmin 3.x/4.x with this info.
Hello everyone.
Describe the bug
When I try to integrate a form field of the type ElFinderType in my EasyAdmin crud controller I only get a simple text field without any function.
Even trying to integrate the infos related to https://stackoverflow.com/questions/64480120/using-elfinder-on-symfony-i-cant-select-images or #406 (incl. overwriting the templates and converting the given infos to the updated EasyAdmin 3.x/4.x configuration) does not help in any way. It also seems that the widget template (neither the original one or the own in
templates/bundles/FMElFinderBundle/Form
) seems not to be used.To Reproduce
Here's the code I'm using:
CrudController
fm_elfinder.yaml
Additional context
Used packages/libs:
Any help is appreciated.
Kind regards,
Dennis
The text was updated successfully, but these errors were encountered: