Search-Bar to reduce List-Filter

97 views
Skip to first unread message

Alex

unread,
Jun 11, 2016, 8:03:37 AM6/11/16
to TiddlyWiki
Hi there,

I got a tiddler to display specific Tiddlers with list-filter:

<$list filter="[kategorie[autor]!title[$:/plugins/z4ck/quellen/vorlage/autor]!regexp[(?i)\Draft]sort[title]]"><$link to={{!!title}}><$view field="title"/></$link><br></$list>

If the tiddler got the value "autor" at the field "kategorie" it is display inside this tiddler.

Now I want to add a search on top ot this list.

If the searchbar is empty the full list should be displayed. If I enter some text the list should be reduced to only show the tiddler, which contains the text.

I looked the search-bar-code up, but I dont really understand all parts. If someone already implemented this function, could you please help me with the code?

Best regards,

Alex

wimm

unread,
Jun 11, 2016, 8:30:13 AM6/11/16
to TiddlyWiki
You can insert   search{$:/temp/search}     to your filter   aft]search{$:/temp/search}sort[title

$:/temp/search contains the value you enter in the search field.
If the field is empty it will match all tiddlers.

Alex

unread,
Jun 11, 2016, 10:57:08 AM6/11/16
to TiddlyWiki
WOW, simply WOW

Thank You wimm.

Works fine and its simple =)

Thank you very much

Mat

unread,
Jun 11, 2016, 6:43:11 PM6/11/16
to TiddlyWiki
Hey this is just really clever from both of you!!! I'll definitely have use for this! Thanks Alex and Wimm!

<:-)
Reply all
Reply to author
Forward
0 new messages