I'm having a strange behaviour in Umbraco 8 while embedding a YouTube link into a content page.
Basically the link is resolved and the preview showed within the backoffice contents area but, navigating the final page results in a json-like text with video metadata (constraint, height, width) values and a preview value showing "Page not found" error (I guess because of resulting double quotes escapes).
Here is the html snippet generated by umbraco for the YouTube video:
Embed YouTube video does not work
Hello.
I'm having a strange behaviour in Umbraco 8 while embedding a YouTube link into a content page.
Basically the link is resolved and the preview showed within the backoffice contents area but, navigating the final page results in a json-like text with video metadata (constraint, height, width) values and a preview value showing "Page not found" error (I guess because of resulting double quotes escapes).
Here is the html snippet generated by umbraco for the YouTube video:
Please, any advice would be appreciated. Thanks in advance.
Andrea
Hi Andrea,
How are you embbeding the video ? Through a rich text editor or through a custom property editor.
Dave
Hi Dave, thanks for replying.
I'm trying to embed my video through the grid Embed editor that I inherited from the default Umbraco 8 starter kit.
I've arranged to modify the template of this editor from:
to
and this is actually fixing my problem since the "preview" field in the model passed contains the correct iframe tag showing the YouTube video.
I'm not aware why this thing changed though: the original Embed.cshtml template of this editor just worked fine without any correction until now.
Thanks and regards, Andrea
is working on a reply...