Hi Richard, Thanks for taking a look at this.
Lets say I have a list of animals which are each tagged according to their class, so "mammal", "bird", "insect" etc. and then another tag to define the no. of legs. (OK, so I'm not a taxonomist!) So human would be tagged with "animal", "mammal" and "2 legs" if I use <$list filter="[tag[animal]tags[]sort[title]]"> <$transclude tiddler="$:/core/ui/TagTemplate"/> </$list> it will display all the tags associated with a particular animal, so "animal", "fish", "reptile", "8 legs" etc. are all displayed as tag pills and clicking on each will show the names of the animals contained in that category. What I'd like to do is separate the list of tag pills, so for instance, one list would show the class of animal and the other the number of legs. I haven't done a mock up of this so I do hope this is an accurate translation of my use case and that it also makes sense. As I mentioned, I can subtract the individual tags of the category from the expression like so: <$list filter="[tag[animal]!tag[insect]tags[]sort[title]]"> <$transclude tiddler="$:/core/ui/TagTemplate"/> </$list> but wondered if I could do it by excluding a field value which is assigned to one of the categories. >From what you've said I understand why my original idea doesn't work. Could you explain the nested idea and particularly how this is generally used <$list filter="[is[current][tag1]]"> Thanks, Jon On Wednesday, 8 April 2015 23:09:26 UTC+1, RichardWilliamSmith wrote: > > Hi Jon, > > I don't quite understand what you're trying to do.... you just want one > list and you want it to contain the tagpill for 'tag1' once? > > Do you only want it to appear once or once for each tiddler that has it > (but doesn't have the other tags?) - do you want to list the tiddlers or > just the tagpill? Isn't this the same as just listing the 'tag1' pill > regardless of anything else? like... > > <$list filter="[[tag1]]"> >> <$transclude tiddler="$:/core/ui/TagTemplate"/> >> </$list> > > > The reason this > > <$list filter="[tag[tag1]!has[fieldname]tags[]sort[title]]"> >> <$transclude tiddler="$:/core/ui/TagTemplate"/> >> </$list> > > > doesn't work is because it's finding all the tiddlers that have tag1 and > then discarding the ones that have 'fieldname' (none of them because you > put that field on the tag-tiddlers, not the tiddlers themselves) and then > listing all the tags and then sorting them. > > I suspect what you're after (which I don't quite get - is it for a > template?) can be done by nesting the filter expressions, something like > this > > <$list filter="[tag[tag1]]"> >> <$list filter="[is[current][tag1]]"> >> <$transclude tiddler="$:/core/ui/TagTemplate"/> >> </$list> >> </$list> > > > Let me know if I'm close and I'll help you figure it out. > > Regards, > Richard > -- 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 http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/b90b753a-1406-4ea6-99b4-1b18941603b4%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

