Hi, I'm trying to make a custom search from two data-tiddlers. I want to
limit the search and only show the results that match the search field but
can't make it work. Any help appreciated :)
/Magnus
<table>
<tr>
<td>Limit to: <$edit-text tiddler="$:/state/table" tag="input"
default="" placeholder={{$:/language/Manager/Controls/Search/Placeholder}}/>
</td>
</tr>
<tr>
<td><$radio tiddler="$:/state/table" field="selection"
value="abbreviations"> Abbreviations</$radio>
<$radio tiddler="$:/state/table" field="selection" value="auctor">
Auctor</$radio>
<$reveal state="$:/state/table!!selection" type="match"
text="abbreviations">
<br><br>
<table class="nolines">
<$list filter="[[$:/_dictionary/abbreviation]]
[[$:/_dictionary/pronunciation]] +[indexes[]]">
<tr>
<td><<currentTiddler>></td>
<td><$view tiddler="$:/_dictionary/abbreviation"
index=<<currentTiddler>>/></td>
<td><$view tiddler="$:/_dictionary/pronunciation"
index=<<currentTiddler>>/></td>
</tr>
</$list>
</table>
</$reveal>
<$reveal state="$:/state/table!!selection" type="match" text="auctor">
<br><br>
<$set name="data" value="$:/_dictionary/auctor">
<$list filter="[<data>indexes[]sort[title]]">
;{{!!title}}
:<$transclude tiddler=<<data>> index=<<currentTiddler>>/>
</$list>
</$set>
</$reveal>
</td>
</tr>
</table>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/fdb7b9a6-b489-408b-8a86-1ddd563d2820%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.