Search Results filtering by title

60 views
Skip to first unread message

Psychos120

unread,
Jun 5, 2019, 10:34:14 AM6/5/19
to TiddlyWiki
Hi guys,
im not so good in coding in HTML or any other language but I love this Tiddlywiki system. 
The Problem is I want to filter my Search Results by their title with the goal to sort them into categories. 

For Example: I search for abc def and I want that only tiddlers show up who contain def.


The first who generates a sorting by their date of creation and I'm close to sure that it is possible to sort them by one specific title and make something like a Categorizer

If something can help me, big thanks, it's probably easy but im not good enouth to combine the listfilter with this  $:/tags/SearchResults 

Psychos120

unread,
Jun 5, 2019, 3:14:23 PM6/5/19
to TiddlyWiki
Thats what I did by myself but it doesn't filter by anything. When I try to use the normal !title[Edukt] it shows me nothing.

\define searchResults()
<$set name="resultCount" value="""<$count filter="[!is[system]search{$(searchTiddler)$}]"/>""">

{{$:/language/Search/Matches}}

</$set>

Edukt
<$set name="resultEdukt" value="[!is[system]search{$(searchTiddler)$}]">
<$list filter="[all[tiddlers]subfilter<resultEdukt>]">

</$list>


Produkt
<$set name="resultProdukt" value="[!is[system]search{$(searchTiddler)$}]">
<$list filter="[all[tiddlers]subfilter<resultProdukt>]">

</$list>

Reaktionverlauf
<$set name="resultReaktionsverlauf" value="[!is[system]search{$(searchTiddler)$}]">
<$list filter="[all[tiddlers]subfilter<resultReaktionsverlauf>]">

</$list>

Reaktionstyp
<$set name="resultReaktionstyp" value="[!is[system]search{$(searchTiddler)$}]">
<$list filter="[all[tiddlers]subfilter<resultReaktionstyp>]">

</$list>

\end
<<searchResults>>

Mark S.

unread,
Jun 5, 2019, 3:39:14 PM6/5/19
to TiddlyWiki
What are categories? How are they determined in your system? By appearance in the title, or tag , or ???
 
Perhaps a few tiddlers of your sample data would be helpful.

Good luck

Eric Shulman

unread,
Jun 5, 2019, 5:53:19 PM6/5/19
to TiddlyWiki
On Wednesday, June 5, 2019 at 12:14:23 PM UTC-7, Psychos120 wrote:
<$set name="resultEdukt" value="[!is[system]search{$(searchTiddler)$}]">

When using the $set widget to get the results of a filter, you need to use the *filter* param, not the *value* param... thus:

<$set name="resultEdukt" filter="[!is[system]search{$(searchTiddler)$}]">

enjoy,
-e

Psychos120

unread,
Jun 6, 2019, 2:24:15 AM6/6/19
to TiddlyWiki
I changed it to filter and it doesnt work sorry nur thanks worth the try. And what I Mean with categories Is That I just Filter my search Results boy just one spezific title.at the first link the guy used a timeline Filter and I dont Want to sort y the timeline but by one Titel and then I can create categories for every Titel I Want to show up and at the normal search resultpage there are title matches and all matches so I think there is a posibility
Reply all
Reply to author
Forward
0 new messages