This seems to work: \define toc-caption() <$list filter="[all[current]tag[wichtig]]" variable="dum">@@color:red;<$view field="caption"><$view field="title"/></$view>@@</$list> <$list filter="[all[current]tag[RezeptGetested]]" variable="dum">@@color: green;<$view field="caption"><$view field="title"/></$view>@@</$list> <$list filter="[all[current]tag[RezeptNICHTGetested]]" variable="dum">@ @color:orange;<$view field="caption"><$view field="title"/></$view>@@</$list > <$list filter= "[all[current]!tag[wichtig]!tag[RezeptNICHTGetested]!tag[RezeptGetested]]" variable="dum"><$view field="caption"><$view field="title"/></$view></$list> \end
Notice I'm using the "tag" operator (which is simpler than regexp). Not sure why we were using the regexp operator before. The problem was the logic. If you stack a bunch of lists like <$list if tag wichtig> red <$list if tag ! wichtig> plain <$list if tag RezeptGetested> green <$list if tag ! RezeptGetested> plain Then you can see that there are going to be two list actions for "plain" -- so if something is "Red" then it will also be "not Blue", and so there will be 2 entries. If you stack 3 sets, then there will always be 3 entries. The fix was to stack them like: <$list if tag wichtig> red <$list if tag RezeptGetested> green <$list if tag not RezeptGetested AND not wichtig> plain HTH -- Mark On Wednesday, January 31, 2018 at 11:31:36 AM UTC-8, Surya wrote: > > Hi, > > again here :-) > > Now I have the situation, that I want in another wiki to have 3 types of > showing tiddlerlinks in the sidebar (shown there with > toc-selective-expandable): > > > - Some tiddlers have the tag "wichtig" >they should be shown red in > the sidebar. > - Some tiddlers have the tag "RezeptGetested" >they should be shown > green in the sidebar. > - Some tiddlers have the tag "RezeptNICHTGetested" >they should be > shown orange in the sidebar. > > I made it with building 3 different tiddlers, tagged with $:/tags/Macro > with > \define toc-caption() > <$list filter="[all[current]regexp: > tags[\bTag\b]]" variable="dum">@@color:Coulour;<$view field="caption"><$view > field="title"/></$view>@@</$list> > <$list filter="[all[current]!regexp:tags[\bTag\b]]" variable="dum"><$view > field="caption"><$view field="title"/></$view></$list> > \end > > >Of course with the different tags & different coulours > > > And I made it with only 1 tiddler, tagged with $:/tags/Macro with the same > command (but repeated 3 times- of course with the different tags & > different coulours). > > > Both didn't work. > But it works, if I only make 1 tiddler with 1 tag + 1 coulour. > > So, it seems, that, if there are 3 different conditions with resulting > coulours, they disturb each other. > > How to solve this? > > Surya > -- 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/b277c9bb-eb09-43bf-a86a-e689224e40fb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

