Why list-links with transclusion doesn't work for me?

41 views
Skip to first unread message

Alexei R

unread,
Jul 30, 2018, 8:50:48 AM7/30/18
to tiddl...@googlegroups.com
Lets say I have multiple tiddlers tagged "X".
And I have additional tiddler that has title "X".

Now if I type
<<list-links "[tag[X]]">>
  into the text area of the tiddler with title "X" - I get list of all tiddlers tagged "X".

But why similar expression, which supposed to use transclusion,
<<list-links "[tag[{{!!title}}]]">>
  doesn't give me the same result? The result is empty list...

What is my mistake? In both cases I expect to receive list of tiddlers tagged with title / name of the current tiddler.

FrD

unread,
Jul 30, 2018, 9:21:43 AM7/30/18
to TiddlyWiki
Hi,

Look at the end of this doc tiddler (Special parameters) : https://tiddlywiki.com/#Introduction%20to%20filter%20notation

Regards

FrD

Alexei R

unread,
Jul 30, 2018, 9:39:42 AM7/30/18
to TiddlyWiki
Than you.
Following expression seems to be working well:
<<list-links "[tag<currentTiddler>]">>
But I don't exactly understand why...
Shouldn't I refer somewhere specifically to the tiddler's title field?

FrD

unread,
Jul 30, 2018, 9:45:17 AM7/30/18
to TiddlyWiki
Hi,

I was thinking more of something like this : <<list-links "[tag{!!title}]">>

Regards

FrD

Alexei R

unread,
Jul 30, 2018, 10:01:18 AM7/30/18
to TiddlyWiki
Just tried your way. It's working well to.
The question what is better "best practice" and performance wise?
<<list-links "[tag{!!title}]">>
or 
<<list-links "[tag<currentTiddler>]">>
Your variant is looking better...
Reply all
Reply to author
Forward
0 new messages