How to access the original content of a Shadow Tiddler

43 views
Skip to first unread message

Florian Cauvin

unread,
May 3, 2020, 5:20:04 PM5/3/20
to TiddlyWiki
How can I get the original value of a shadow tiddler that I override?

As an example, let's say I make some small modifications to how my TW displays tags by overriding shadow tiddler $:/core/ui/TagTemplate

I then want to display the difference using the original and my modification using the (new) diff text widget. I would want to write something like:

<$diff-text source=??? dest={{$:/core/ui/TagTemplate}}/>

where ??? would be an expression that could retrieve the TW-built-in unaltered content of the shadow tiddler

TonyM

unread,
May 3, 2020, 11:48:09 PM5/3/20
to TiddlyWiki
Florian,

I am yet to do this myself but first you find out which plugin the shadow tiddler belongs using https://tiddlywiki.com/#shadowsource%20Operator
eg; $:/core

  • On a given system tiddler see Info (button) advanced. this will indicate the shadow source as well.
  • See also https://tiddlywiki.com/#subtiddlerfields%20Operator to get the fieldnames in shadow tiddlers
  • There is a preview option in edit mode to compare with the tiddlers source (may be a lead to see how tiddlywiki already does it)
I thought there was a way to access shadows otherwise called subtiddlers, but cant find it right now

I May return to this 

Regards
Tony
Reply all
Reply to author
Forward
0 new messages