Hi ,
This is my first post. I work for a nonprofit organization and we use openedex platform to public our e-learning courses or moocs.
Starting from 2024 we choose Microsoft 365 as our mayor service provider, we upload content to one drive business accounts and we would to upload or better says embeed it into our courses hosted on openedex.
We usually used google drive that permit embeed with iframe, seems that in Microsoft that is not possible.
I saw some documentation about Microsoft LTI integration but I would know your opinion or better experience on this .
For embedding PDFs directly into Open edX courses, I recommend saving the PDF files in the Files & Uploads section in Studio and using the PDF XBlock to embed them within your course pages. This approach ensures a seamless display and integration of your content directly on the platform.
You can follow these documentation links for guidance on using the PDF XBlock:
Many thanks @CatalinaMoralesor for your suggestion, I’ll try this option.
For other documents? Like office file? And if I would to share a folder with documents?
All of these from Microsoft one drive source?
I could be mistaken but as far as I’m aware it’s not possible to embed into an iFrame with an entire folder, only individual files. It’s possible that embedding iframes is also disabled by default in the SharePoint admin center, might be some settings to adjust there too, though I’m not entirely confident about this…
Assuming there’s nothing explicitly blocking it then you can open up your OneDrive/SharePoint online, browse to the folder containing your file(s) and open a file online in the browser, click the 3 dots and Embed
You’ll also have to manage the online sharing permissions to ensure that users within your Org (or specified users only) are able to access the files (or “Anyone with the link” if you expect users outside the org to access as well). Be very careful about sharing security depending on the nature of the information they contain and who should be allowed according to your company policies.
If you want to test the embeddable link in your browser before putting it onto your site, here’s some crude sample code that you can save as a *.html file and open it to test:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>OneDrive/SharePoint Folder Embed Test</title>
</head>
<body>
<h1>Embedded OneDrive/SharePoint Folder</h1>
<p>If the iFrame is working, you should see the contents of your OneDrive or SharePoint folder below.</p>
<iframe
src="https://xxxx-my.sharepoint.com/personal/xxxxxxx/_layouts/15/embed.aspx?UniqueId=xxxxxxxxxxxxxxxxxxxxxxxxxxx"
width="640"
height="360"
frameborder="0"
scrolling="no"
allowfullscreen
title="xxxxxxxx">
</iframe>
<p>End of the iFrame content.</p>
</body>
</html>
In this case permission is for everyone just read.
I think Sharepoint block that use, for this reason I was thinking that there’s some Addin for OpenEDX to include in other way the O365 Microsoft files.
Yes, I get the same error when I share content from our organisation’s SharePoint, but if I share it from my personal OneDrive then it works. I expect there’s some setting that might need to be updated in the SharePoint Admin Center, though I’m not exactly familiar with it…