Closed schalkneethling closed 3 years ago
Yup, I'm cleaning up posts and videos to ensure all the metadata is there, not only on the first page (including descriptions) but social and other. After launch I'll create some tickets to autopopulate this stuff from the initial info added. I'll leave this open until I am done.
Stealing this because the iframe template is controlled by wagtail or our oembed provider or YouTube. Will see if I can override it to slot in the extra markup
leaving also assigned to me as a reminder if thats ok
:+1:
Note to self: This looks like we'll need to subclass the regular YouTube embed provider (and document that all others will need it adding too, or make it a generic wrapper for existing providers). Am a bit surprised that this isn't something that has been solved already, so will check to see, too.
Related ticket on the Wagtail side: https://github.com/wagtail/wagtail/issues/5982
One video pages such as: https://developer-portal.stage.mdn.mozit.cloud/videos/coding-dark-mode-your-website/ the following problem has been identified
iframe
that embed the Youtube video does not have atitle
attribute.We have a couple of options here:
title
attribute to theiframe
element that matches the title of the page, for example:id
attribute to theh1
and reference it as the label on theiframe
, for example:Option one is most likely the easiest to maintain and avoids the problem of coming up with different
id
attribute values if there is more than one video on the page.@valgrimm I believe this is something that will be addressed from the CMS side so, I am assigning it to you. Please reassign if my assumption is incorrect.