Downloading a tiddlywiki for comments, critique etc

77 views
Skip to first unread message

Steven Schneider

unread,
Feb 5, 2018, 11:25:19 AM2/5/18
to TiddlyWiki
Hi folks,

As part of my work in designwritestudio.com I frequently want to download a tiddlywiki file, modify it, and share it. I'd rather not have to manually rename it, and am happy keeping the file name used by tiddlyspot (most of my students this semester are using Mat's fabulous tiddlywiki5.tiddlyspot.com tool to create tiddlywiki files, so the name in [[$:/UploadName]] is guaranteed to be unique).

I poked around a bit, and put something together (based on this), which seems to work for my purposes, so I thought I'd share this with the group (for once: I am contributing! Not asking for help!)...

//steve.



\define download() $(file-name)$.html
<$vars file-name={{$:/UploadName}}>
<$button class="tc-btn-big-green">
<$action-sendmessage $message="tm-save-wiki" filename=<<download>>/>Download <<download>> to default save location</$button>


Mat

unread,
Feb 5, 2018, 11:42:21 PM2/5/18
to TiddlyWiki
Steve, thanks for sharing. While I didn't try it out yet, it should be very useful!

Just a note; The code you give is missing a closing </$vars>. Also, because the macro is several lines, I'd recommend using the multi-line macro format, i.e

\define download()
$
(file-name)$.html
<$vars file-name={{$:/UploadName}}>
  <$button class="tc-btn-big-green">
    <$action-sendmessage $message="tm-save-wiki" filename=<<download>>/
>
   
Download <<download>> to default save location
 
<
/$button>
</
$vars>
\end

<:-)

Mat

unread,
Feb 5, 2018, 11:44:12 PM2/5/18
to TiddlyWiki
Steven Schneider wrote:
 (for once: I am contributing! Not asking for help!)...

Your contributions in the form of spreading the word via your course is probably one of the more important contributions made. Wonderful!

<:-) 
Reply all
Reply to author
Forward
0 new messages