Embedding files¶
CERNBox can be embedded into external websites by adding the query parameter embed=true to the URL. This displays a simplified interface with non-essential UI elements removed. Some applications even provide a dedicated embed mode — for example, MS Office file previews can be embedded so that only the document content is shown, without menus. The file name remains visible, and users can still access the original file (in read or write mode) by clicking the CERNBox logo.
For example, copy the URL of the app that opens a public link, add embed=true and add it as an iframe to your website. Like so:
<iframe
src="https://cernbox.cern.ch/external-ms365/public/VhKjySsbpDKxa4o/Embedding%20demo.xlsx?embed=true"
frameborder="0"
style="border: none; border-radius: 22px; overflow: hidden; width:100%; height:500px;"
>
</iframe>