On Monday, November 18, 2019 at 12:39:55 AM UTC-8, Juri wrote:
>
> 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?
>
Here's a little experiment I just cooked up:
\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>
Copy the above into a tiddler and see what you get...
enjoy,
-e
--
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/0f3552c7-7839-48e8-878e-3432797ba1ee%40googlegroups.com.