OK, so- unlike my earlier situation, this is one that I don’t think I will be able to find a solution to relatively quickly on my own.
I’m trying to create a TiddlerColourFilter for three types of tags, with tiddlers that can change their contents with the filter to continue to work with them.
The only problem I’ve run into is the general tag, what I call the topic tag.
I borrowed the transclusion widget setup used for the colour macro, modified it a tad, and tried to transclude it’s result into the filter like I did the other two tag types, but while the other two will work no problem, the topic tiddler… doesn’t.
Now, I feel like this is going to be one of those situations where I’m using the wrong tool for the job, as far as the transclude widget goes, but at the same time, I’m not sure what the right tool would be, metaphorically speaking.
I plan on making a tab in the control panel to allow people to change the contents of the tag type tiddlers, but that is also in the works, and probably going to take a bit longer, for context. Anyways..
As always, any and all help or advice is welcome and appreciated
It works for you?
I exported the tiddlers and tested them on a blank edition of TW 5.3.3 and I couldn’t get the topic tags to work as intended, they are supposed to be blue when using vanilla, rather than the default yellow.
The intended behavior is for system tiddlers to appear yellow, tiddlers tagged Status (Tiddler) to be red when they are used as tags, and tiddlers tagged Category (Tiddler) to be green when used as tags, while all other tags would be blue while being used as tags.
But I can’t seem to get the blue tags, the topic tags, to show correctly.
I guess the best way to show this would be, importing to a blank edition, import the tiddlers, create a tiddler, Not tag said tiddler, then create a 2nd tiddler, that is tagged with the first tiddler (making sure that it is not titled like the other two tag types) and it should appear LightBlue.
So, with that line set to use the topic/colour tiddler, it will show what I’m trying to achieve, however the other topic tiddler is what I want to use so that, in the event that topic/colour tiddler doesn’t exist or have a colour set, it will use the tag-background colour from the active plugin.
I think my tiddler naming may have been a bit misleading then, I’ll need to figure out what to name them differently.
Now that I’m thinking about it, I’m curious if the transclusion is really neccesary anyways, since if it doesn’t apply the filter, it will default to the normal color of the tag, right?
so in actuality, I could just use the topic/colour tiddler i think
It depends on what you want to achieve in the future.
I did test it again, and if you use [!is[system]tagging[]then{$:/wiki/tags/topic/colour}] and the $:/wiki/tags/topic/colour tiddler does not exist or has no text value, it works as expected.
Oh well that is because there wasn’t problem with $:/wiki/tags/topic/colour, the issue was with using the output of the transclude widgets in $:/wiki/tags/topic to dynamically choose a color, depending on if $:/wiki/tags/topic/colour existed.
But like you pointed out, just skipping it and going right to using $:/wiki/tags/topic/colour is likely the best choice.