- Issue created by @suhaib_hija
- 🇨🇦Canada optasy
I wasn't able to replicate this, how do I add the new field?
- Status changed to Postponed: needs info
about 1 year ago 2:55am 13 October 2023 - 🇪🇨Ecuador jwilson3
I was also unable to replicate this issue on the latest versions via https://simplytest.me using Drupal core 10.1.5 and SVG Image Field 2.3.
My main question though is how exactly is Layout Builder relevant to adding an SVG media to a node? Please elaborate on this step to clarify the setup, because the problem you're seeing could be related to field block caching or any number of things related to LB.
Assumptions I made while testing:
- Launch https://simplytest.me with Drupal core and SVG Image Field module.
- Enable Layout Builder module and configured the Default view mode of the "Article" content type to use Layout Builder. I left the option "Allow each content item to have its layout customized" unchecked.
- Enable "Media", "Media Library" and the "SVG Image Field - Media bundle" submodule, in order to have the "Vector image" media type.
- Add a "Media" field to the "Article" content type and allow selection from the "Vector Image" media type in field config settings.
- Edit the "Article" Layout and add the "Media" content block. Configure it to display the "Rendered entity" using the "Default" view mode.
- Create a node, uploading an SVG to the media library and specifying the Alt text and clicked "Save"
- Verify the alt text on the IMG tag from the full node display.
- Click the contextual link to edit the Media item and change the Alt text.
- Return to the full node display and verify that the ALT text has been updated.
For now I'm marking this one as "Postponed (maintainer needs more info)", but feel free to change the status back to "Active" when you've provided repeatable steps that I can follow on a clean install using https://simplytest.me
Thanks.