I'd like to set something up so that I can apply a filter using drop down lists of the available tags so I can then search for all the tiddlers tagged with both A and B by selecting each tag from the drop down list.
Find tiddlers tagged with:
<$select tiddler="$:/temp/tag1">
<$list filter="[all[]tags[]sort[]]">
<option value=<<currentTiddler>>><<currentTiddler>></option>
</$list>
</$select>
and
<$select tiddler="$:/temp/tag2">
<$list filter="[all[]tags[]sort[]]">
<option value=<<currentTiddler>>><<currentTiddler>></option>
</$list>
</$select>
Found <$count filter="[tag{$:/temp/tag1}tag{$:/temp/tag2}]" /> matching tiddlers:
<$list filter="[tag{$:/temp/tag1}tag{$:/temp/tag2}]">
<li><$link><<currentTiddler>></$link></li>
</$list>
http://braintest.tiddlyspot.com/#TagsSearch-Plugin
Hope it still works.
Regards
That works Eric, thank you.
I wonder if the behaviour could be changed a bit so that the first selection shows the tiddlers with that tag and then the second selection shows the match- at the moment it will only show tiddlers with a match for both tags.
<$select tiddler="$:/temp/tag2">
<$list filter="[all[]tags[]sort[]]">
<$select tiddler="$:/temp/tag2">
<$list filter="[tag{$:/temp/tag1}tags[]sort[]]">