List: fieldname = tiddlername currentTiddler

74 views
Skip to first unread message

vinvi...@gmail.com

unread,
Jun 12, 2021, 5:25:09 AM6/12/21
to TiddlyWiki
Hello,

The following is listing the values out of field "warning" of tiddler "@fields". The name of the listed field bears the same name as the tiddler containing the list-code:

In tiddler warning: 
<$list filter="[list[@fields!!warning]search:title{$:/temp/search@fields}]" variable=warning-value>


I want to transclude this code in different tiddlers.
How do I avoid having to specify the field name every time?
$tiddler="@fields" $field=<<currentTiddler>>

Thank you,

A Gloom

unread,
Jul 20, 2021, 4:22:05 AM7/20/21
to TiddlyWiki
1) Make a tiddler with that code above to act as your transclusion "template".  Start it with <$tiddler tiddler=<<currentTiddler>>> and end it with </$tiddler>.  Name it, you will need its name for step 2.
2) in any tiddler you want to reuse it in, use {{||templatetiddlernamefromstep1}}
Reply all
Reply to author
Forward
0 new messages