Embedded iFrame figures #660
-
Hi there, I'm wondering if anyone can advise on the best way to include external resources as a Figure. We'd like to be able to include resources from sources such as SketchFab or the Internet Archive. These would usually be embedded as an iFrame. Sample resources:
Might a workaround to including resources such as this be to follow the guidance for including a table?: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@brutaldigital you're right that using the existing system for including a table would be the way to go. In Quire, tables are held as individual HTML files and then added into the project with the figure shortcode. But Quire doesn't really know what HTML is in the file, and so it doesn't need to be a You also may want a fallback for print. Quire will include anything with |
Beta Was this translation helpful? Give feedback.
@brutaldigital you're right that using the existing system for including a table would be the way to go. In Quire, tables are held as individual HTML files and then added into the project with the figure shortcode. But Quire doesn't really know what HTML is in the file, and so it doesn't need to be a
<table>
but could instead be and<iframe>
embed or anything else. So, if you save the embeds from those two example, you list them in the figures.yaml as you would normally, but withmedia_type: table
and then insert them where you need them. I did a quick test and it worked pretty well, though you're probably going to want to add some CSS to optimize their display.You also may want a fallba…