Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Open Video Duration meta tag is not supported.
@see #2319389: Add extra meta tags for og:type=video
Proposed resolution
Add og:video:duration tag
Remaining tasks
Copy code from #2319389: Add extra meta tags for og:type=video
Update tests
Approve
User interface changes
N/A
API changes
N/A
Data model changes
N/A
Release notes snippet
N/A
Comment | File | Size | Author |
---|---|---|---|
#4 | 3074603-metatag.png | 54.29 KB | cindytwilliams |
#4 | 3074603-schema.png | 79.94 KB | cindytwilliams |
#4 | 3074603-field.png | 47.23 KB | cindytwilliams |
#3 | metatag-adds-og-video-duration-3074603-3.patch | 2.03 KB | thejimbirch |
|
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedComment #3
thejimbirch CreditAttribution: thejimbirch at Kanopi Studios commentedPatch applied and added the tag as expected, but was missing the schema. New patch attached that adds it.
To Validate:
Apply the patch
Verify metatag_open_graph is enabled
Add/Edit and Meta tag default
Expand the Open Graph field set
Verify the
Video duration (seconds)
field is presentThere is an issue to add test coverage for this scenario, Add test coverage to ensure each meta tag's config schema is created properly.
Comment #4
cindytwilliams CreditAttribution: cindytwilliams at Kanopi Studios commentedPatch #3 applied cleanly. The "Video duration (seconds)" field was added, as well as the
og:video:duration
meta tag and the schema.Marking RTBC.
Comment #5
Chris Matthews CreditAttribution: Chris Matthews commentedComment #6
DamienMcKennaSo the D7 version doesn't have this, it has just video:duration, so I added a new issue to backport the change: #3089445: Add og:video:duration tag (D7)
Comment #8
DamienMcKennaI also updated Drupal\metatag\Plugin\migrate\process\d7\MetatagD7Entities so we can make sure we remember to get it into D7.
Committed. Thanks everyone!