How to transclude all tiddlers tagged with <currentTiddler>

75 views
Skip to first unread message

Roving Richard

unread,
Mar 26, 2017, 8:11:14 PM3/26/17
to TiddlyWiki
I see that I can transclude tiddlers with a specific tag using

<$list filter="[tag[TagNameHere]]">
! <$transclude field="title"/>
<$transclude mode="block"/>

I can also make lists of tiddlers using the current title using <currentTiddler>:

<<list-links filter:"[tag<currentTiddler>] +[sort[title]]">>


... but if I try to use the <currentTiddler> magic with the transclude code, it doesn't work:

<$list filter="[tag[<currentTiddler>]]">
! <$transclude field="title"/>
<$transclude mode="block"/>

I've tried using the tag<currentTiddler> syntax but I get an error that I'm missing the brackets. I don't get why this wouldn't work.

Roving Richard

unread,
Mar 26, 2017, 10:02:42 PM3/26/17
to TiddlyWiki
I figured it out:

<$list filter="[tag{!!title}]">
<h1><$link><$transclude field="title"/></$link></h1>
<$transclude mode="block"/>
</$list>


Credit: https://groups.google.com/forum/#!searchin/TiddlyWiki/<$24list$20filter$3D"[tag{!!title}]">|sort:relevance/tiddlywiki/V-sEk0nULSI/KFbOQ3vmEwAJ

Matthew Lauber

unread,
Mar 27, 2017, 9:53:43 AM3/27/17
to TiddlyWiki
Just as an FYI, you could also have done 

<$list filter="[tag<currentTiddler>]">
<h1><$link><$transclude field="title"/></$link></h1>
<$transclude mode="block"/>
</$list>

The extra square brackets were the problem.
Reply all
Reply to author
Forward
0 new messages