Is it possible to transclude the contents of a shadow tiddler?
I want to display raw contents of $:/core/ui/ListItemTemplate inside a tiddler.
I have tried
{{$:/core/ui/ListItemTemplate}}
<$transclude tiddler="$:/core/ui/ListItemTemplate" mode="block" />
One shows the link and other the output. Both does not show the content of the tiddler.
I am actually trying to document my TiddlyWiki configuration inside TW. I am trying to write a tiddler in which I describe what changes I have made in $:/core/ui/ListItemTemplate. It would be helpful, I can show the raw contents along with the description.
Thanks a lot, Saq. This fixed the issue
<pre>
<$text text={{$:/core/ui/ListItemTemplate}}/>
</pre>
Keep in mind that the editor preview has an option to compare the current overridden shadow with the shadow
Thank you Tones. This is valuable. I was not aware of this feature.
Thank you Tones. For anyone else coming to this thread, this is how you can find the “plugin that contains a shadow tiddler”.
For example, to find the source plugin of $:/core/ui/ListItemTemplate, use this code
! Show Plugin that contains the Shadow Tiddler
<ul>
<$list filter="""[[$:/core/ui/ListItemTemplate]shadowsource[]]""" emptyMessage="(empty)">
<li>
<$link><$view field="title"/></$link>
</li>
</$list>
</ul>
Tones, can you please share an example of using subtiddlerfields correctly. This is what I have tried.
<ul>
<$list filter="""[[$:/core/ui/ListItemTemplate]subtiddlerfields[$:/core]]""" emptyMessage="(empty)">
<li>
<$link><$view field="title" /></$link>
</li>
</$list>
</ul>
It shows me “title” and “text”, but I cannot view the actual values of “title” or “text” fields.
<ul>
<$list filter="""[[$:/core/ui/ListItemTemplate]subtiddlerfields[$:/core]]""" emptyMessage="(empty)">
<li>
<$link><$view field="title" /></$link>
</li>
</$list>
</ul>Thank you Saq. This was helpful. I ran it on a couple of shadow tiddlers and fixed my configuration using compareTiddlerText.