How can i use the apostrophe-oembed to embed data from another website using an iframe? I have gone through the documentations but were of little help.
Asked
Active
Viewed 69 times
1 Answers
0
apostrophe-video-fields
is probably the best example of how apostrophe-oembed
is used. There is some complexity there, but I'd need to see where you are in your code before saying what you might need to change.
Keep in mind that this only works for endpoints that Oembed supports. If you're trying to display some random website in an iframe, you should be looking at apostrophe-html
and adding an iframe in there. Or, even better, create a custom widget that has a url
field, makes sure it's safe, then puts it in an iframe in the widget template (or a custom piece/page schema field as appropriate).

alexbea
- 1,311
- 14
- 25