Another approach:

First, create "super tags", i.e have your tags be tiddlers that are in turn 
categorized by using tags. For example your red tags might be: tomato, 
strawberry and cherry and your green tags might be broccoli, cucumber, 
avocado. So you let all six of those tags be tiddlers which you in turn tag 
with "red" and "green" respectively.

To "make a list of all tags of the current tiddler that aren't red" you'd 
use

{{{ [all[current]tags[]!tag[red]] }}}

To "view a tiddler (not editing), hiding all green tags but keeping red 
tags visible" is possible but there's some kind of silent concensus that it 
is a bad idea to hide tags. If you still want to do it, here's a strategy:

Create a new viewtemplate (i.e tagged $:/tags/ViewTemplate) that contains

{{{ [all[current]tags[]tag[red]] || $:/core/ui/TagTemplate }}}

this creates a new row with only the red tags. (You can click the 
$:/tags/ViewTemplate pill to reorder so that it is positioned where tags 
are supposed to be positioned). The problem is that you'll get this applied 
for all tiddlers so you might want to add a criteria to the current 
tiddler, e.g that is is by itself tagged red, like so:

{{{ [all[current]tag[red]tags[]tag[red]] || $:/core/ui/TagTemplate }}}

You can do the equivalent for green.

Likely you'll want the original tags viewtemplate to be hidden. For this 
you can style the tiddlers that contain any of your cucumber, tomato etc 
tags so that they hide the original tags row:

<$list filter="[tag[red]] [tag[green]]">
[data-tags*="{{!!title}}"] .tc-tags-wrapper {display:none;}
</$list>

OK, the above is untested but I think it should give the idea.

<:-)

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9c9dc5f7-2189-4e85-ae3c-e102f1afe3f6%40googlegroups.com.

Reply via email to