I am moving some of our organisations intranet to "Modern" sites on MS hosted Sharepoint.

As Sharepoint doesn't allow HTML editing, I've made a few pages on my website that users can embed, to pick up dynamic information etc that Sharepoint will not have.

The content varies in height, so it's impossible to get an iframe that fits without causing scroll issues.

Also my users are not web developers, so rather than teaching all my users how to use iFrames, I wanted to use the "embed with a URL" feature.

I do not want to use iframes.

How do I set up my website (not the SharePoint website, mine!) to allow Sharepoint to pick up the correct information to embed automatically? Is there a protocol somewhere I need to apply on my webpage? Some meta tags? it is oEmbed? Similar?

I want my users to copy a URL from my website written in a different platform not SharePoint, by me, and paste it into a SharePoint embed web part and have it embed without the user typing iframe code.


In modern page, you can try to use the embed web part to insert iFrames.

Examples and instructions:https://sharepointmaven.com/how-to-embed-content-from-other-websites-in-sharepoint-online/

| improve this answer | |
  • Thanks, but I don't want to be limited to an iframe as the content can vary in height. I also want my users (who are a mixed bag of experts in many fields except computing) to be able to copy and paste a URL, rather than learning how to format an iframe. – Hippyjim Sep 15 at 8:59
  • @Hippyjim, in modern page, we cannot change the layout without the out of the box options. You can change the page layout like this:support.microsoft.com/en-us/office/…. And use the embed web part to paste the iFrames URL. – Jerry_MSFT Sep 16 at 1:40
  • Thanks for replying @Jerry_MSFT but that is also not what I asked. I know all this. I want to know how to make MY WEBSITE work with the embed by URL feature. I want my users to paste a URL from my website and have it embed automatically within the SharePoint embed web part without them having to write the iframe tags. – Hippyjim Sep 16 at 6:19
  • @Hippyjim, for that, it may be better for you to find a custom web part for this. For out of box solution, if you want to display from an external site in a modern page, then you need to use embed. – Jerry_MSFT Sep 16 at 8:17

Having asked elsewhere, someone suggested I look at the tags on YouTube to see if anything there gave a clue how they handle embeds.

There's an oEmbed tag, which lead me to investigate how to be an oEmbed provider.

It seems you have to add a tag to your pages, which gives a link to an oEmbed endpoint, that returns JSON info about how to embed the page.


| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.