- Issue created by @grumpy74
- πΊπΈUnited States apmsooner
I honestly havn't used layout_paragraphs and therefore didn't have a chance to test this scenario. I will try to find time to test it and reproduce the issue but it also looks like theres a good number of issues with their module with at least a few related to media so really hard to say where the issue lives. I do know that in normal paragraphs, the media library widget has been working as expected. Layout paragraphs must be doing something a little differently perhaps.
- π¨πSwitzerland grumpy74 Geneva, CH π¨π
Thanks for the feedback. Iβll try to find a moment to check if I can dig into that specific case. Otherwise Iβll create a custom field widget to handle that specifically case instead of trying to tweak the generic one. Like so said it seems to be linked on the way layout paragraphs deals with subforms.
Than you again for the amazing job on custom_field.
Regards
- πΊπΈUnited States apmsooner
Thanks for the encouragement and happy the module is found useful! Good interim idea for your own custom widget. The documentation is here for doing that: https://www.drupal.org/docs/extending-drupal/contributed-modules/contrib... β
- π¨πSwitzerland grumpy74 Geneva, CH π¨π
Thank you @apmsooner, I actually duplicated the MediaLibrary widget to create my own (extending the original one) and only override the "widget" method to make it work the same way as in the MR opened in that ticket, just in case others need that feature.
Considerate that, I thing the issue can be closed as the issue is definitely on the layout paragraphs side (which is not dealing with subforms the regular way therefore the #parents key of the form is empty). I'll maybe open an issue in their tracker and see...
Again thanks for providing the widget documentation link and to make custom_field formatters/widgets that easy to create.