this post was submitted on 22 Jun 2024
2 points (75.0% liked)

Nextcloud

442 readers
1 users here now

Community dedicated to Nextcloud

founded 1 year ago
MODERATORS
 

I need to embed the documents, .odp and .odt into my WordPress/Elementor site.

How do I pull this off? IFrames don't seem to work

top 3 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 4 months ago (1 children)

That's going to be tricky, they need to be rendered by the browser or a plugin to display correctly. Even if you get it to work on your end, every user would have to have an identical setup to use your site. The default browser behavior would be to download those file types.

I'd suggest to reformat them to xml or standard html instead and offer a download link.

[–] [email protected] 1 points 4 months ago (1 children)

OpenOffice documents are xml

[–] [email protected] 2 points 4 months ago

Yeah but only if they are called xml and the server supports interpreting them, they'll be displayed correctly by the browser.