@talha131

The subtiddlerfields filter is supposed to do just that, give you a list of 
fields that exist in the subtiddlers of a plugin. So I am not entirely sure 
why you were pointed in that direction, maybe Tony had some other approach 
in mind that I cannot think of at the moment.

To see the original content of a shadow tiddler you can do this:

<pre><code>
<$view tiddler="$:/core" subtiddler="$:/core/ui/ListItemTemplate" />
</code></pre>

Or to see the diff between the current copy of the tiddler and the original 
shadow version:

<<compareTiddlerText $:/core $:/core/ui/ListItemTemplate 
$:/core/ui/ListItemTemplate>>

To compare all fields and not just the text:
<<compareTiddlers $:/core $:/core/ui/ListItemTemplate 
$:/core/ui/ListItemTemplate>>

See  
https://github.com/Jermolene/TiddlyWiki5/blob/master/core/wiki/macros/diff.tid  
 for 
more parameters for those macros.

Cheers,
Saq




On Wednesday, September 2, 2020 at 10:42:31 AM UTC+2 talha131 wrote:

> 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. 
>
> On Tuesday, September 1, 2020 at 4:39:12 AM UTC+5, TW Tones wrote:
>
> FYI:
>>
>> If the shadow has being edited <$text 
>> text={{$:/core/ui/ListItemTemplate}}/> will show the updated content, not 
>> the original content.
>>
>> To find the original content you can use the 
>> https://tiddlywiki.com/#subtiddlerfields%20Operator but you need to know 
>> the plugin it belongs to
>>
>> Interactive access
>>
>>    - Keep in mind that the editor preview has an option to compare the 
>>    current overridden shadow with the shadow
>>    - The Info button on any tiddler > advanced tag tells you the status 
>>    of shadow tiddlers.
>>
>> Regards
>> Tony
>>
>> On Monday, 31 August 2020 21:20:30 UTC+10, talha131 wrote:
>>>
>>> Thanks a lot, Saq. This fixed the issue
>>>
>>> <pre>
>>> <$text text={{$:/core/ui/ListItemTemplate}}/>
>>> </pre>
>>>
>>>

-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/de7e288c-aa03-471c-9d58-93ad29284f53n%40googlegroups.com.

Reply via email to