Is it possible to display a local HTML file within a tiddler?

136 views
Skip to first unread message

Zachary Storer

unread,
Nov 20, 2018, 4:38:54 PM11/20/18
to TiddlyWiki
Hello,

I want to archive some blog articles and reference them from within my TiddlyWiki.
Is there a way to display a locally saved HTML file, and its corresponding images,
within a Tiddler? I want to embed a locally saved webpage within a Tiddler versus
linking into an external browser. I am also using Tiddly Desktop.

Thanks,

-

Zak

Mark S.

unread,
Nov 20, 2018, 5:03:33 PM11/20/18
to TiddlyWiki
Assuming that you're talking about a local file TW, you can use iframe:

<iframe src="path-to-html-file" width="90%" height="500px"></iframe>

This is the most universal way of saving documents that I've found. PDF's and other formats will often break on various platforms. I kind of liked MHT, and even MAFF, but they don't appear to have survived the great FF 57 Fiasco.

You can add comment structures to your tiddler with keywords relating to the web page (e.g. <!-- anthropology cosmetology Sagan --> ) so that the tiddler will show up when you do a search.

-- Mark

TonyM

unread,
Nov 20, 2018, 5:29:58 PM11/20/18
to TiddlyWiki
This also works

 <embed src="sample.html" width="100%" height="800"> 

and 

In a tiddler tagged $:/tags/RawMarkup you can include more

Regards
Tony

Mark S.

unread,
Nov 20, 2018, 5:37:13 PM11/20/18
to TiddlyWiki
I suppose I should know this, but what is the difference between iframe and embed ?

Is your suggestion for pulling libraries into TW? Otherwise I'm not sure why you would do that.

Thanks!
-- Mark

TonyM

unread,
Nov 20, 2018, 7:09:19 PM11/20/18
to TiddlyWiki
Mark,

You can embed even a text file. Its just a way of making external content available.

I am not sure if its loaded at wiki load or only when the tiddler is rendered but I assume the latter.

I am still exploring a fuller use of html because as long as it does not need JavaScript the browser responds as it would any other html delivered on any website.

Regards
Tony

Reply all
Reply to author
Forward
0 new messages