Anjar,

Shadow tiddlers is quite a big subject since it relates to a large part of 
the core, plugins etc... 

I do personally believe there are many opportunities to make use of this 
infrastructure for much more, which I think you question hints at. I have 
done quite a lot of exploration in this space and will share but a little 
in this response.

Shadow tiddlers are known as tiddlers inside a plugin, but a plugin is only 
a tiddler containing one or more tiddlers defined in JSON. This allows more 
than one tiddler to be packaged in another tiddler. Accessing such embedded 
tiddlers is via the shadow tiddler model.

There is already code to support converting tiddlers to JSON, and it is the 
import process. After dropping a set of tiddlers on a wiki (any wiki), 
rename the $:/import tiddler before importing, (remove its existing 
fields). It is then a JSON tiddler. However to convert it so it allows 
access to the tiddlers within as shadows, you need to change it into a 
plugin. This is not complex as it the case with most things in TiddlyWiki.

Changing a JSON Tiddler of tiddlers into a plugin and related shadow 
tiddlers.

   - Edit the JSON tiddler and add or change the plugin-type field to have 
   a value of plugin

You now have a plugin tiddlers, and you can find it in the list of plugins, 
bur it is not making use of all the features, it only has a contents tab.

You can now edit these to turn the shadows into real tiddlers, drag and 
drop between wikis and export it for import later.

Cool yes?
Tones

On Monday, 10 May 2021 at 03:12:59 UTC+10 Mark S. wrote:

> Tinka <https://tinkaplugin.github.io/> is a tool for making tiddlers into 
> a plugin. You could also use it to add tiddlers to an existing "storage" 
> plugin.
>
> On Sunday, May 9, 2021 at 4:28:15 AM UTC-7 Anjar wrote:
>
>> Hi!
>>
>> Shadow tiddlers have some nice properties, s I wonder: can ordinary 
>> tiddlers be made into shadow tiddlers or is it technically difficult? So 
>> that if a new tiddler is created with the same title, the old one 
>> disappears but is lurking in the background as a shadow?
>>
>> Best,
>> Anders
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/7f6cf866-e4b6-4673-a5fb-c7b28fc45866n%40googlegroups.com.

Reply via email to