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 :)
<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>