How do I offer a handle to drag to another wiki a collection of tiddlers that are not a live part of my current wiki?
I’ve certainly seen—and been impressed by—@pmario’s Bundler Plugin. I might well end up using it. But my needs are somewhat different, and I’m wondering if anyone can suggest an appropriate mechanism.
To document some TW ideas, I want to have a central documentation wiki, as well as a collection of example wikis. For demos, instead of what TW does—using its own page as the playground—I want to point to the example wikis, offering the user something to drag to a particular example wiki. That something should contain one or more tiddlers that will be imported into the example wiki. But I don’t want those tiddlers themselves to be part of the central wiki. I would assume that would mean that they are stored in JSON, but I’m not quite sure how it would work.
I imagine some macro/function/procedure that I can call like:
<<example wiki:books export:"$:/path/to/example/42" >>
which would user this:
caption: Author view template
tags: Share
title: $:/path/to/example/42
type: application/json
[{"title":"templates/Author", "tags": "$:/tags/ViewTemplate","text":"Some content here"},{"more":"here"}]
to offer a draggable source (using an icon or the caption/title text) that provides an import of the tiddlers from that JSON into the “books” example wiki (or whichever wiki you dragged it onto, although caveat emptor if it’s not the expected target wiki.)
If absolutely necessary, I could add some feature to the examples wikis to make this process easier, but I’d rather not; it would be useful if users could drag the examples to whatever wiki they like and then modify to suit.
So… any suggestions?
The original concept had these example wikis as subwikis or in iframes. I’ve come to think that those won’t work. But if someone could prove me wrong, I’d be ecstatic!