Providing a download link to complete wiki

66 views
Skip to first unread message

myfta

unread,
Feb 11, 2020, 4:59:05 PM2/11/20
to TiddlyWiki
The title asks the question: how do you provide a link for users to download complete copy of your TiddlyWiki?

Eric Shulman

unread,
Feb 11, 2020, 5:19:57 PM2/11/20
to TiddlyWiki
On Tuesday, February 11, 2020 at 1:59:05 PM UTC-8, myfta wrote:
The title asks the question: how do you provide a link for users to download complete copy of your TiddlyWiki?

Using standard HTML syntax:
<a href="#" download="targetname.html">
   download this file
</a>

Notes:
* The "targetname.html" is a *suggested* filename for saving the downloaded file.  Some platforms may ignore this value and assign their own default filename.
* If your browser is configured to "ask for filename", you will get a platform-specific dialog box that will allow you to change the filename and/or the folder in which the file will be stored.
* Some older browser versions do not support use of the "download" attribute.  See https://caniuse.com/#search=download for more info.

enjoy,
-e



TonyM

unread,
Feb 13, 2020, 5:52:23 AM2/13/20
to TiddlyWiki
Eric/myfta

Eric Thanks for this simple and elegant solution. I will just add this will not save recently edited and unsaved tiddlers. 

To do so you will need something like the "big green button" on Tiddlywiki.com which can be researched to make other alternatives which can include and exclude tiddlers including recently changed ones.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages