In this case you could make a tiddler marked as global macro with the following contents:
\define toc-caption() <$list filter="[all[current]regexp:tags[\bJa\b]]" variable="dum">@@color:red;<$view field="caption"><$view field="title"/></$view>@@</$list> <$list filter="[all[current]!regexp:tags[\bJa\b]]" variable="dum"><$view field="caption"><$view field="title"/></$view></$list> \end Except that your new requirement for TWO tags changes the filter logic. Do you mean you want both tags to turn RED, or one tag to turn RED and the other GREEN ? Good luck, Mark On Sunday, January 14, 2018 at 4:27:28 AM UTC-8, Surya wrote: > > Hi Mark, > > I made a tab in the sidebar with a tiddler. In this tiddler I have table > of content with > <div class="tc-table-of-contents"> > <<toc-selective-expandable 'Pflanzen-Wiki' sort[title]>> > </div> > > Does your idea work there? Would I have to modify it? > The tiddlers, which should to be shown in another colour are tagged with > "Pflanzen" and "Ja". > -- 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 tiddlywiki+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. 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/3ddc7607-0431-4c60-93ec-1961f4f8f2cd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.