- Issue created by @rkoller
- 🇩🇪Germany rkoller Nürnberg, Germany
I've did some more digging. Is it possible from my none developer perspective that the current behavior is working as designed on the node edit page for a node containing a
Media with contextual modifications
field type?
There are visually hidden input elements after the rendered media library items that look like they are build bymedia_library_media_modify
. But it seems that the media library items before are build in line 397 in the medialibrarywidget.php file with$preview = $view_builder->view($media_item, 'media_library');
and that there is currently no way to have alternative view displays (according to the comment in line 396 pointing to ✨ Allow the MediaLibraryUiBuilder service to use an alternative view display Needs work )? - Status changed to Needs review
over 1 year ago 4:07pm 18 March 2024 - 🇮🇳India chandravilas Pune
I am also face similar issue, I added a reference field media and selected the widget "Media Library Extra" in a form display, Upload and selection of existing media works fine,
but issue when I click on edit button, pupup opens, once popup open I modified the existing form and saved, Popup get closed but values are not updated on frontend display on node edit form.I solved this issue and created patch for the same, hope attached form helps you.
- 🇮🇳India chandravilas Pune
Patch for 15501932 🐛 on the node edit page contextmod only shows global values for media items even though some are overridden Needs review
#3
- 🇩🇪Germany rkoller Nürnberg, Germany
i've restored the removed issue summary. why it got removed? next i will see if the issue still applies, and after that i'll take a look at the patch.
- 🇩🇪Germany rkoller Nürnberg, Germany
I've tested the steps to reproduce against 2.x-dev again. the problem still applies. changing the version to 2.x-dev. in regard to the patch. would it be possible to move it to a MR and does the changes apply to 2.x-dev as well or are there additional changes necessary?
- 🇩🇪Germany rkoller Nürnberg, Germany
hm took the time to install an old drupal 10 site and so being able to install media library media modify 1.x. that way i was able to apply the patch with composer patches. but on the node edit page still the global field value instead of the overridden one is shown. unfortunately the patch isnt fixing the problem outlined in the issue summary. :( i am setting the issue back to needs work.