If I understand your use case correctly, the following will work as well

Open a new tiddler and write:
{{{ [all[tiddlers]tag[City]tag[Germany]tagging[]tag[Company]] }}}

tag[City]tag[Germany] : Get ALL Tiddlers that have tagged with "City" AND 
"Germany"
tagging[] : For Each result "X" in the last step: Get all Tiddlers that 
tagged with "X" (all tiddlers that tagged with any German Cities)
tag[Company] : For Each result "Y" in the last step: GET only those 
tiddlers that tagged with "Company" (may be you've other things in that 
City)

Regards
On Friday, March 12, 2021 at 12:26:51 PM UTC+2 [email protected] wrote:

> Hi Mark,
> thats a very powerfull PlugIn, thank you for that.
> I waste the whole morning with checking the possibilities :-) :-) :-(
>
> Benedikt
>
> Mark S. schrieb am Freitag, 12. März 2021 um 04:34:33 UTC+1:
>
>> 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/69837593-7e78-41b2-9e7f-719364b8e640n%40googlegroups.com.

Reply via email to