Download just a tiddler from a TW?

158 views
Skip to first unread message

Mat

unread,
Mar 9, 2020, 4:23:29 PM3/9/20
to tiddl...@googlegroups.com
I am guessing "no" but asking anyway:

Is it possible, in wiki-1, to click on a something (a link or a button) to trigger a download of only a tiddler from wiki-2 which is located at some external url?

Downloading a full wiki is of course done when clicking on, say, "download empty" on tiddlywiki.com so my question is if it is possible to limit it to only be the specific tiddler/s in the target TW.

If this were possible, it would be trivial for anyone to make a plugin library for ones own stuff (a plugin library would just be a tiddler with a permalink for every plugin you serve) and it would probably also be simple to make a global kind of share-list with links to other peoples wikis.

<:-)

Donald Coates

unread,
Mar 9, 2020, 5:28:53 PM3/9/20
to TiddlyWiki
I know this is pretty vague but is something like a Widget Message what you are after.  Like the download message?  This is something I'm just starting to explore so I can't be of any help beyond pointing at it.


On Monday, March 9, 2020 at 4:23:29 PM UTC-4, Mat wrote:
I am guessing "no" but asking anyway:

Is it possible to click on a something (a link or a button) to trigger a download of only a tiddler from a wiki?

Jeremy Ruston

unread,
Mar 9, 2020, 5:33:45 PM3/9/20
to tiddl...@googlegroups.com
Hi Mat


On 9 Mar 2020, at 20:23, Mat <matia...@gmail.com> wrote:

If this were possible, it would be trivial for anyone to make a plugin library

It’s already pretty trivial to make a plugin library under Node.js, are you talking about making a plugin library with the standalone file configuration? If so, perhaps you don't need to invent a new mechanism, but just experiment with using the same templates to generate files in the browser.

Best wishes

Jeremy

TonyM

unread,
Mar 9, 2020, 8:50:50 PM3/9/20
to TiddlyWiki
Mat,

The manual way is of course to "export" a given tiddler. Whilst tid is available I tend to stick to json

<$button message=tm-download-file param="TargetTiddler">Download ~TargetTiddler tiddler</$button>
But the filename etc... needs setting (somehow)

If you search for $:/core/templates/ you will see many of the templates available

Actually you have sent me down a path I have taken before, but now I know more I may be more productive.

Regards
Tony


On Tuesday, March 10, 2020 at 7:23:29 AM UTC+11, Mat wrote:
I am guessing "no" but asking anyway:

Is it possible to click on a something (a link or a button) to trigger a download of only a tiddler from a wiki?

Mohammad

unread,
Mar 10, 2020, 3:50:32 AM3/10/20
to TiddlyWiki
Mat,

This is amazing proposal!

It should be as simple as possible people with basic TW knowledge can create a shared-list, tiddler-library, ...
The current mechanism of making library needs Node.js and some advanced knowledge of TW+Node

--Mohammad

Mohammad

unread,
Mar 10, 2020, 4:25:23 AM3/10/20
to TiddlyWiki
Jeremy,
This is a good starting point. Would you please give an example to create a library from these tiddler on tiddlywiki.com

[tag[HelloThere]]


Assuming TW+Node.js are working.

--Mohammad

--Mohammad



 

Best wishes

Jeremy

Luis Gonzalez

unread,
Mar 10, 2020, 9:44:16 AM3/10/20
to tiddl...@googlegroups.com

You can download a single tiddler as a .tid file (or csv, json or static html) in this way:

1. Open the Advanced search tiddler.
2. Type the title of the tiddler inside square brackets in the filter tab. For example, [[Using Stylesheets]].
3. Click on the third icon on the left (the export tiddlers icon)
4. Choose the format of the tiddler file.

Look at the above image.



Mohammad

unread,
Mar 10, 2020, 9:50:48 AM3/10/20
to tiddl...@googlegroups.com
This is different from plugin library or what Mat said in his initial post!
What Mat said and I asked from Jeremy is: A user in his wiki has a tool like Plugin Library

When Plugin Library is opened, one can select a pluging, a them, a macro, or other tiddler bundle and just add (inject) to his/her target wiki!
No need to drag and drop. No need to visit source wiki, create bundle, export and import,... no hassle

Example: Tony updates his tips and tricks in his PSAT wiki and I have added my Simple Navigation Macro in Yazd wiki!
You can just open your Tiddler Library (or whatever it is called) and see what Tony recently updated and what I have added!

--Mohammad



On Tuesday, March 10, 2020 at 5:14:16 PM UTC+3:30, Luis Gonzalez wrote:

You can download a single tiddler as a .tid file (or csv, json or static html) in this way:

1. Open the Advanced search tiddler.
2. Type the title of the tiddler inside square brackets. For example, [[Using Stylesheets]].

Luis Gonzalez

unread,
Mar 10, 2020, 9:53:24 AM3/10/20
to tiddl...@googlegroups.com
OK. This was only an idea.

Maybe you can customize this "export" button for your needs...

:-o


Mat

unread,
Mar 10, 2020, 1:54:05 PM3/10/20
to TiddlyWiki
I'm regretting that I asked this because it is in all likelihood more complex than I have time or skill for at the moment. Here's what I naively was hoping someone would say:

Sure, just use:

<a href="https://tiddlywiki.com/#HelloThere" download>link</a>

and add the secret ingredient X.

That is the common html way to make a download-link, e.g for images or pdf's. A key difference in what I'm asking for is that I don't want to download the whole file. Only the tiddler. And from any TW. I suspect it is not possible.

But, I should focus on EditorMagic which is multi facetted enough (not to mention my work which, because of corona, is doubling up on workload). Anyway, some bits if anyone wants to pursue this:

- use an iframe to access other wikis export functions
- see if the mechanism behind the green "Download empty" button could take a url 
- Instead of the various "collection lists to plugins" we see some of our heroes create, these lists could be put in a tiddler along with such a download mechanism.
- Others could republish these lists and add stuff.  some time, the heroes could fetch these manipulated lists for import and, via some other mechanism, update their original lists. 

...not really thought through but anyway.

<:-)

TonyM

unread,
Mar 11, 2020, 11:39:18 PM3/11/20
to TiddlyWiki
Mat,

Did you try moving tiddlers between iframe and the current wiki?

<iframe src='https://tiddlywiki.com/#Filter%20Operators' frameborder="0" width="1024"; height="600"></iframe>

The above in a tiddler on the pre-release site allows you to drag and drop any of the filter operator documentation tiddlers. Any active link to a tiddler can be dragged from one wiki to the other and imported. If you can save in either wiki this can be committed to disk.

But your permalink could go to a custom tiddler presenting 

The wiki inside the iframe is fully loaded so it may not be possible with large wikis.

I was playing with this again and found it refusing the drop unlike 5 mins earlier. So I am not sure in what circumstances this is refused.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages