AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Drupal commerce image display11/21/2023 ![]() ![]() I did do this manually, but I imagine this would be fairly simple to automate, but I only had a handful of fields, and I went slowly and carefully with the next bit anyway, making sure to test each of my new fields. Then I set it to use the media widget, and matched its position and settings on the entity form and entity display modes. So, I go one by one looking at each bundle, and where there was a field named like: field_background_image for example, I'll create a new entity reference field called: field_background_media and set it to reference media entities. This is essentially a list of bundles where we'd set up our file upload widget that I needed to swap out. To get a nice list of the entity bundles that needed this work doing, I went to uninstall the File entity browser module, and Drupal gives me a nice list of the config that would need to be updated. Now for the tedious part: duplicating all those lovely file/image fields with media field equivalents.
0 Comments
Read More
Leave a Reply. |