Thanks mark, that did the trick. I was not aware that list would create a 
new "list".

On Tuesday, December 11, 2018 at 7:19:44 PM UTC+1, Mark S. wrote:
>
> I'm confused a bit about which parts go where. It might help if you 
> exported your sample data and tiddlers.
>
> But I can point out that this:
>
> [<target>list[!!parent]]
>
> is the same as 
>
>
> [list[!!parent]]
>
>
> Because the list operator is a generator, and does not use prior operators 
> in the filter as an input.
>
> So I think you want something equivalent to :
>
> [list[<target>!!parent]]
>
> This of course doesn't work. So you would need to use a macro or a wikify 
> widget to put the <target> and the !!parent together.
>
> Possibly a macro like
>
> \define tarpar() """$(target)$!!parent"""
>
> used in a filter like
>
> [list<tarpar>]
>
> Good luck!
> -- Mark
>
>
>
> On Tuesday, December 11, 2018 at 9:43:45 AM UTC-8, Tristan wrote:
>>
>> Hey guys,
>>
>> I have another issue regarding filters in Tiddlers.
>>
>> Setup: Tiddler A transcludes tiddler B inside scope of a vars widget 
>> creating a variable "target" which holds another tiddlers name. Trying to 
>> figure out my mistake I came across this weird behavior:
>>
>> This works and gives me the value inside "name" I want (even though 
>> <target> is redundant here as tiddler widget sets current tiddler).
>> <$tiddler tiddler=<<target>>>
>>     <$list filter="[<target>list[!!parent]]">
>>         <$transclude field="name" />
>>     </$list>
>> </$tiddler>
>>
>> Now we get to the weird part... this does not work. Why does my variable 
>> not resolve here?
>> <$list filter="[<target>list[!!parent]]">
>>     <$transclude field="name" />
>> </$list>
>>
>> In my current setting I can not use tiddler widget as this list is part 
>> of a bigger template tiddler. That is why I have a target variable in the 
>> first place.
>>
>> Any ideas why this happens? Solutions?
>>
>> Thanks in advance.
>> Tristan
>>
>

-- 
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 post to this group, send email to tiddlywiki@googlegroups.com.
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/90d19806-2ef3-4e81-81d1-89077e209b99%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to