This would typically require a technique called recursion. But rather than 
writing your own from scratch, you can use the kin filter available here 
<https://bimlas.gitlab.io/tw5-kin-filter/>.

After you have it installed and loaded, you could use a nested set of list 
widgets like this:

<$list filter="[tag[Company]]" variable="company">
<$list filter="[kin::from:<company>compare:string:eq[Germany]]">
<<company>><br/>
</$list>
</$list>

to find all companies that are descendants of "Germany".

BTW, when did New York become a country? ;-)

On Thursday, March 11, 2021 at 3:52:52 PM UTC-8 [email protected] wrote:

> Hi,
> I have the following task
> I have Tiddlers taged as Country, City or Company
> Every City is also tagged with the country and every Company is also 
> tagged with city where it is located.
> Example:
> 'Germany' tagged as 'Country'
> 'USA' tagged as 'Country'
> 'Berlin' tagged as 'City' and 'Germany'
> 'Munic' tagged as 'City' and 'Germany'
> 'New York" tagged as 'Country' and 'USA'
> 'Comp1' tagged as 'Company' and 'Munic'
> 'Comp2' tagged as 'Company' and 'Berlin
> 'Comp3' tagged as 'Company' and 'Berlin'
> 'Comp4' tagged as 'Company' and 'New York'
>
> Now I want a list with all Companies in Germany  
> Is there a way to create this with a filter?
> like tag[Company]tag[tag[Germany]]
>
> Thanks
> Benedikt
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/faa793a5-6c74-4852-ad2e-8b02381c14dan%40googlegroups.com.

Reply via email to