Search tiddler title with tag (I) and show text field.

25 views
Skip to first unread message

vinvi...@gmail.com

unread,
Nov 26, 2020, 4:10:20 AM11/26/20
to TiddlyWiki
Hello,

With the following code I transclude the text field of all tiddlers tagged with "(I)":

<$list filter="[tag[(I)]]">{{!!text}}</$list>

The following code gives me a searchable list of all tiddlers tagged with "(I)": (Shiraz plugin)

<<list-search filter:"[tag[(I)]limit[100]]" stateTiddler:"(I)">>

I want the text field to be visible of all tiddlers tagged with (I) and not the title.
Search in title field / show text field.

How do I do that?


TW Tones

unread,
Nov 26, 2020, 4:23:41 AM11/26/20
to TiddlyWiki
Vinvi

If the macro you are using, I presume in Shiraz you need to look at its documentation to see how to do it, or make your own.

Here is a sample that works on TiddlyWiki.com Like your own, but what is different when you use the macro list-search?
I think since you are not using one of the macros features, you do not need to use it, especially to display text.  
Your could provide a template=templatetiddler where templatetiddler contains {{!!text}} but that is unnecessarily complex.

<$list filter="[tag[TableOfContents]limit[3]]">
{{!!text}}
</$list>

There is no variable= set so the currentTiddler is set for each item in the resulting list.
{{!!text}} transcludes the text field of the current tiddler.

Regards
Tones
Reply all
Reply to author
Forward
0 new messages