It's a little hard to understand your use-case, but if I understand right, 
then this might do what you want:

<$set name="tag" value="tiddler1"> 
<$list filter="[tag<tag>tags[]] -[tag<tag>] -[<tag>]">

</$list>
</$set>

(that blank space in the middle is important, BTW).

The tag value gets set as a variable and then used in the filter. First it 
finds all the items tagged by "tiddler1", then all the tags of those items. 
Then it subtracts all the items tagged by "tiddler1" and the value of 
"tiddler1" itself.

HTH
-- Mark

On Saturday, November 3, 2018 at 2:17:52 PM UTC-7, haroulito wrote:
>
> Dear TW community,
> I am using TiddlyWiki a lot lately but I am a novice in terms of fiddling 
> with it. I am looking for a way to list related tags to a list of tiddlers 
> (returned by list filter, for instance). I've searched a few times but 
> can't find something and I'm wondering whether there is an easy way to 
> implement it.
>
> A simple scenario is given below:
> Let's say tiddler1 tags two other tiddlers (tiddler2 & tiddler3) and when 
> we run list filter it returns:
>
>    - tiddler2 
>    - tiddler3
>
> I then need to get the parent tiddlers of tiddler2 (i.e those tagging 
> tiddler2, as opposed to those tagged by tiddler2 which we can get with list 
> filter or toc-selective-expandable).
>
> I need to do the same for tiddler3, aggregate and list the results 
> (ideally with a count of the number of tiddlers tagged by each "related" 
> tag). This way I can see that tiddler2 which is tagged by tiddler1 is also 
> tagged by e.g. tiddler4. This helps to view how I can narrow down long 
> lists of results through the use of "related" tags.
>
> Another way to view this might be: for a given tiddler go one level down 
> in the toc tree, see if any of the branches intersect with other toc trees 
> and get all parents of the intersections.
>
> Any hints as to how to implement this? Apologies if a solution exists and 
> I haven't come across it. I just came across the filter/plugin by bimlas 
> but didn't have a chance to test it yet so not sure if it will tackle the 
> problem.
>
> Many thanks 
> haroulito
>
> p.s.1.
> I found the following code in 
> http://tobibeer.github.io/tb5/#Conditional%20ViewTemplate%20Section which 
> might do part of the job but I cannot get it to work:
>
> <$list filter="[all[current]tag[Project]]">
>
> <$list filter="[all[current]tagging[]]"/>
>
> </$list>
>
> p.s. 2
> This is my first post here and I have to say that Tiddlywiki is simply 
> amazing and the community is very helpful.
>
>

-- 
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/a8d9223e-fea2-4eac-94a4-9c45c0a6088e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to