Hi,

if you have a way to filter for all site tiddlers you could then use the 
contains operator to see if the site is contained in the sites field. 
Something like this:
<ul>
<$list filter="[!has[draft.of]tag[Site]sort[title]]" variable="site">
<li>
<$link to=<<site>> />
<ul>
<$list filter="[!has[draft.of]has[sites]contains:sites<site>sort[title]]">
<li><<currentTiddler>></li>
</$list>
</ul>
</li>
</$list>
</ul>

Which would look something like this - although in your case with more and 
meaningful data:

Regards,
Felicia



On Monday, 14 September 2020 12:51:34 UTC+2, Darek Bobak wrote:
>
> My tiddlers have a field "sites", in which I store multivalue site names, 
> in format: 
> Rörshein Zeitlarn [[Vedrovice V]] [[Dzierżysław I]] 
>
> The code below creates a hierarchical list showing tiddlers names and list 
> of sites assigned to each tiddler (look at the attachment).
>
> <$list filter="[has[sites]]">
>   <ul><li>
>     <$link><<currentTiddler>></$link>
>     <$list filter="[enlist{!!sites}sort[title]]" variable="mySites" >
>        <ul><li> <<mySites>> </li></ul>
>     </$list>
>   </li></ul>
> </$list>
>
> But I can not get the reverse order,ie to group the tiddlers by the 
> sites, like that:
> * Albersdorf
>     * tiddler 1
>     * tiddler 2
> * Ksar Akil
>      * tiddler 1
>      * tiddler 3
>
> Would someone help?
>
> best
> Darek
> [image: Zrzut ekranu 2020-09-14 124902.png]
>

-- 
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/fa0df2e1-057f-49de-a3bd-2349425c6284o%40googlegroups.com.

Reply via email to