This tiddler has a number of tags as shown. The tag Sassetas does not have a target tiddler that has been created yet. I am looking for a way to highlight tiddlers like that when viewing a data tiddler. That way, as I go through the TW, I can fix up any of those tiddlers over time.
Tags that have a “target tiddler” are assigned CSS class tc-tag-exists.
Tags that do NOT have a target tiddler are assigned CSS class tc-tag-missing.
So, to make missing tags easily visible, you can create a stylesheet tiddler (e.g., “TagStyles”), tagged with $:/tags/Stylesheet, containing something like this:
Then, when you are viewing a tiddler, any tags that don’t have a target tiddler will display with bold italic text which will make them stand out from the other tags.
@EricShulman , thanks for your suggestion. I have worked out that the tag title display has its font style and weight altered when displayed in the All Tags list in the control panel. Not quite what I envisaged but all good nevertheless. I was hoping for an indication when viewing a tiddler and the tag in that tiddler’s tag list would have some indication, maybe a change of colour.
Anyway, your suggestion gets me much further much easier that before. So thanks again.
@CodaCoder , I can’t get that display on my TW. Don’t know why. For me the tag list is just displayed as normal. But I can get an italicised display in the All Tags list in the control panel.
If you use the browser debugger to examine the tag (right-click on the tag and choose “inspect”), it should show that the tag text is wrapped in a <span> that has a class of either tc-tag-exists or tc-tag-missing which is added by the TWCore <<tag>> macro that is used to display the tags. This macro is defined in $:/core/macros/tag which contains the following definition:
If the tc-tag-missing class is not present, then perhaps you are using a modified version of $:/core/macros/tag rather than the default shadow definition.
Also, to confirm that your stylesheet is being applied, try entering the following into a test tiddler:
@@.tc-tag-missing This is some text that should be bold and italic @@