<$list filter="[tag[ExampleA]tag[ExampleB]sort[title]]">
<<currentTiddler>>
{{||$:/core/ui/ViewTemplate/tags}}
</$list>
Is there a default way to select a combination of tags so that only the tiddlers with said combination are shown? Or how can I get a list with Checkboxes to do this?
\define maketagfilter() tag[$(currentTiddler)$]
<style>.columns8 { display:block; -moz-column-count:8; -moz-column-gap:1em; -webkit-column-count:8; -webkit-column-gap:1em; font-size:60%; line-height:1em; }.columns4 { display:block; -moz-column-count:4; -moz-column-gap:1em; -webkit-column-count:4; -webkit-column-gap:1em; font-size:80%; line-height:1.4em; }</style>
__''SELECT TAGS:''__<br>@@.columns8<$list filter="[all[tiddlers+shadows]tags[]sort[]]"> <$checkbox tiddler="selectedTags" index=<<currentTiddler>> checked=<<maketagfilter>> checkactions="""<$action-setfield $tiddler="selectedTags" $index=<<currentTiddler>> $value=<<maketagfilter>> />""" uncheckactions="""<$action-setfield $tiddler="selectedTags" $index=<<currentTiddler>> />"""> <$text text=<<currentTiddler>>/> </$checkbox><br></$list>@@<$wikify name="filter" text="""[all[tiddlers+shadows]<$list filter="[title[selectedTags]indexes[]]">{{{ [[selectedTags]getindex<currentTiddler>] }}}</$list>]""">
__''RESULTS FOR FILTER: <$text text=<<filter>>/>''__<br><$reveal text=<<filter>> type="nomatch" default="[all[tiddlers+shadows]]">@@.columns4 <$list filter=<<filter>>><$link/><br></$list>@@</$reveal></$wikify>
<style>
.columns8 { display:block; -moz-column-count:8; -moz-column-gap:1em; -webkit-column-count:8; -webkit-column-gap:1em; }
.columns4 { display:block; -moz-column-count:4; -moz-column-gap:1em; -webkit-column-count:4; -webkit-column-gap:1em; }
.tiny { font-size:60%; line-height:1em; }
.small { font-size:80%; line-height:1.3em; }
</style>
__select tags__:<br>
@@.columns8.tiny
<$list filter="[all[tiddlers+shadows]tags[]sort[]]">
<$checkbox tiddler="selectedTags" index=<
<currentTiddler>> checked=" "
checkactions="""<$action-setfield $tiddler="selectedTags" $index=<<currentTiddler>> $value=" " />"""
uncheckactions="""<$action-setfield $tiddler="selectedTags" $index=<
<currentTiddler>> />""">
<$text text=<<currentTiddler>>/>
</$checkbox><br>
</$list>
@@
<$wikify name="filter" text="""[all[tiddlers+shadows]<$list filter="[title[selectedTags]indexes[]]">tag[<<currentTiddler>>]</$list>]""">
<$list filter="[title[selectedTags]indexes[]count[]] -[[0]]">
<$set name="filter_text" filter="[title[selectedTags]indexes[]join[ AND ]]">
<$wikify name="filter_text" text=<<filter_text>>>
@@.small __There are <$count filter=<<filter>>/> tiddlers tagged with <<filter_text>>__<br>@@
</$wikify>
</$set>
@@.columns4.small <$list filter=<<filter>>><$link/><br></$list>@@
</$list>
</$wikify>
<$wikify name="filter" text="""<$list filter="[title[selectedTags]indexes[]]">[all[tiddlers+shadows]tag[<<currentTiddler>>]] </$list>""">
<$list filter="[title[selectedTags]indexes[]count[]] -[[0]] -[[1]]">
<$set name="filter_text" filter="[title[selectedTags]indexes[]join[ OR ]]">
<$wikify name="filter_text" text=<<filter_text>>>
@@.small __There are <$count filter=<<filter>>/> tiddlers tagged with <<filter_text>>__<br>@@
</$wikify>
</$set>
@@.columns4.small <$list filter=<<filter>>><$link/><br></$list>@@
</$list>
</$wikify>
<$list filter='[all[tiddlers]tags[]sort[title]]'>
<$select field='filter-field1'>
<$list filter='[all[tiddlers]tags[]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
<$select field='filter-field2'>
<$list filter='[all[tiddlers]tags[]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
<$select field='filter-field3'>
<$list filter='[all[tiddlers]tags[]sort[title]]'>
<option value=<<currentTiddler>>><$view field='title'/></option>
</$list>
</$select>
<$list filter="[tag{!!filter-field1}] +[tag{!!filter-field2}] +[tag{!!filter-field3}]">
<$link><$view field=title/></$link>
<br/>
{{||$:/core/ui/ViewTemplate/tags}}
</$list>
Enter code here...
Is there a default way to select a combination of tags so that only the tiddlers with said combination are shown? Or how can I get a list with Checkboxes to do this?
Search for tags by name, filter tiddlers by custom tag intersections
You can use the search box to search for tags by name in the Tags tab. For example, you remember a sauce recipe that could be used for chicken dishes, so you search for "sauce" and click on the tag icon next to sauces in the list because you are sure you added this tag to the tiddler (so it's a direct tag) and then search for "chicken", and you click the chain icon next to chicken in the list because you only know that it is related to the chicken topic somewhere, but you do not know the depth (ancestor tag).