Magnus,

The following will get the value of the parent field in the current tiddler 
and then inside the List widget the parent will become the current tiddler

<$list filter="[all[current]get[parent]]">

</$list>

and this will list the parent

Simply embedding the same again inside will get the parent of the parent 
(Grand Parent)

<$list filter="[all[current]get[parent]]">
<$list filter="[all[current]get[parent]]">

</$list>
</$list>

Note the blank line in an empty list widget returns the value

So the grate grand parent is found as 
<$list filter="[all[current]get[parent]]">
<$list filter="[all[current]get[parent]]">
<$list filter="[all[current]get[parent]]">

</$list>
</$list>
</$list>

However with the use of the variable we can make it more readable, but 
rather than make use of the currentTiddler, we need to state it in the 
filter

<$list filter="[all[current]get[parent]]" variable=parent>
<$list filter="[<parent>get[parent]]" variable=grand-parent>
<$list filter="[<grand-parent>get[parent]]" variable=great-grand-parent>

</$list>
</$list>
</$list>

But now we can make use of the ability to name the values

<$list filter="[all[current]get[parent]]" variable=parent>
<$list filter="[<parent>get[parent]]" variable=grand-parent>
<$list filter="[<grand-parent>get[parent]]" variable=great-grand-parent>
The current Tiddler is <<currentTiddler>>, its parent is <<parent>>, its 
grand-parent is <<grand-parent>> its great-grand-parent is <
<great-grand-parent>><br>
</$list>
</$list>
</$list>

Let me know if you can find your way from here, their are so many different 
routes you could take?

Regards
Tony

On Sunday, November 18, 2018 at 3:17:34 PM UTC+11, Magnus wrote:
>
> Yes, please elaborate on the get operator. How can I use it to get the 
> parent field? I think it is the Marios tocp plugin I use, sounds familiar.
>
> Den söndag 18 november 2018 kl. 00:40:16 UTC+1 skrev TonyM:
>>
>> Magnus,
>>
>> Marios tocp plugin will help you do this. So will bimlas's new kin 
>> operator (5.1.8 prerelease)
>>
>> However you can do it manualy using the get[fieldname] in a list to get 
>> the parents tiddlername name and reference its fields.
>>
>> Do you want more info?
>>
>> Tony
>>
>>

-- 
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/70f2a0e8-1dc8-4b47-9e0f-8e8ddab0b26a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to