Hello,
Is it possible to transclude the text field of multiple tiddlers during a filtered transclusion?
{{{ [tag[mechanism]] }}} gives a list of tiddler titles but I need the content/text-field of all these tiddlers.
Hello,
Is it possible to transclude the text field of multiple tiddlers during a filtered transclusion?
{{{ [tag[mechanism]] }}} gives a list of tiddler titles but I need the content/text-field of all these tiddlers.
Use the get[fieldname]
filter operator, like this:
{{{ [tag[mechanism]get[text]] }}}
The result will be a list containing the text
field value from each tiddler tagged with mechanism
.
enjoy,
-e
Thank you, this works.
I’ve only started learning about TW recently so these are probably beginner questions.
Is there a way to display the list more aesthetically with a space or preferably a line between?
You can use the $list
widget to exert precise control over the output from a filter expression, like this:
<$list filter="[tag[mechanism]get[text]]">
<div><<currentTiddler>></div>
</$list>
The content within the <$list>...</$list>
widget specifies the output format for each item in the filter.
ref: https://tiddlywiki.com/#ListWidget
-e
Perfect. Thank you, much appreciated.
I have accomplished the same like this with paragraphs
plug in – https://tiddlywiki.com/static/Paragraphs%20in%20WikiText.html
<<paragraphs filter:"[tag{!!title}]">>
OR,
<<paragraphs filter:"[tag[myTag]]">>
Special benefit is that you can edit without going to edit mode.