- Issue created by @boyinasantosh
- 🇺🇸United States DamienMcKenna NH, USA
Were you using the Metatag field with the File Entity module on your D7 site? Are you using core media on D9 for the standalone file paths, or something else?
- 🇮🇳India boyinasantosh
Yes we are using Metatag field with File Entity for our D7. And D9 we are using core media.
So, how can we migrate from D7 to D9 for Metatags of type image & video entities?
- 🇺🇸United States DamienMcKenna NH, USA
I suspect the issue might be that the entity type has changed between D7 and D9, so they aren't matching up during the process.
Out of interest, does the process recreate the Metatag field for the media types?
- 🇮🇳India boyinasantosh
Yes we have configured metatags for Media type.
As per the code https://github.com/damienmckenna/metatag/blob/8.x-1.x/metatag.module#L694
I see it supported only for node, taxonomy & user but not file or Media.
- Status changed to Needs review
over 1 year ago 4:27pm 26 July 2023 - last update
over 1 year ago 371 pass, 2 fail The last submitted patch, 6: metatag-n3376077-6.patch, failed testing. View results →
- 🇺🇸United States DamienMcKenna NH, USA
(the test failure is a false negative)
- last update
10 months ago Patch Failed to Apply - Status changed to Needs work
6 months ago 5:23pm 10 October 2024 - 🇺🇸United States DamienMcKenna NH, USA
I wonder if this should map files to media objects automatically instead of assuming it would map to files?
- 🇺🇸United States DamienMcKenna NH, USA
Should this say $entity_type = 'media' instead of "file"?
+ // Files get migrated to media entities. + case 'file': + $entity_type = 'file'; + $entity_id = $row->getSourceProperty('fid'); + break;