You may find that colour={{{ [<currentTiddler>get[Tag_Category]get[color]] [<currentTiddler>get[color]] +[last[]] }}} makes more sense?
i.e. "if I have a color specified and a Tag_Category that specified a color, my color overrides the category color. Otherwise, I'll use the category color." Something like that. On Monday, October 11, 2021 at 10:45:16 PM UTC-3 Charlie Veniot wrote: > Arg, I pointed you to the wrong shadow tiddler. I should have suggested > that you look at $:/core/ui/TagTemplate. > > Apologies ! > > Please find attached a file for you to download, drag into TiddlyWiki.com, > and study. > > This is my way of setting up inheritance. > > I have "Some Tiddler" tagged with "Tag Category 1". > > I have the "Tag Category 1" tiddler (i.e. the tiddler that matches the > tag) in which I've specified a "color" field and selected a color that will > show for that tag. > > I have "Some Other Tiddler" tagged with "Test Tag 1". > > And I have the "Test Tag 1" tiddler (i.e. the tiddler that matches the > tag) in which I've specified a "Tag_Category" field, and set the value of > that field to "Tag Category 1". > > The intent is this: when a tag's matching tiddler has a "Tag_Category" > specified, I want that tiddler to inherit (well, use) the color specified > in the tiddler specified in Tag_Category. If the tag's matching tiddler > does not have a "Tag_Category" field, then I want that tiddler to have the > color specified in the color field. If it has no color field, then it will > have the default color for tags. > > The magic happens in the edit I've made to the $:/core/ui/TagTemplate. > > Look for: colour={{{ [<currentTiddler>get[Tag_Category]get[color]] > [<currentTiddler>get[color]] +[first[]] }}} > > The original code was: colour={{!!color}} > > Cheers, and Best wishes ! > > On Sunday, October 10, 2021 at 10:13:07 PM UTC-3 thor...@gmail.com wrote: > >> Hello all, >> >> I've been reading Grok Tiddlywiki to help organize my own personal wiki. >> I'm starting to reach the point where I need to organize >> <https://groktiddlywiki.com/read/#Classifying%20Tags:%5B%5BWelcome%20to%20Grok%20TiddlyWiki%5D%5D%20%5B%5BClassifying%20Tags%5D%5D> >> >> my tags better. >> >> I understand that the Tag Manager exists for this purpose, but I was >> hoping for something that allows me to sort tags into groups by colors, and >> icons programmatically. >> >> For instance, I have tags specifically for technical links, like "math", >> "compilers", "comp_arch", that would all be perfect for a color and icon I >> use purely for "technical" tags, with a tiddler that shows me what colors >> map to which group. However, if I decide I don't like this color/icon, I >> want to be able to change a single tiddler, and all tags in the same group >> get the new color/icon. Is there a way to accomplish this with transclusion? >> >> On a related note: is there a way in general to transclude from a tiddler >> such that the target tiddler inherits the fields of the source tiddler? >> > -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/07162bfc-6540-43bc-9234-f7f5363d95f4n%40googlegroups.com.