Filter transclude syntax question

52 views
Skip to first unread message

W Yan

unread,
Nov 13, 2020, 10:54:45 AM11/13/20
to tiddl...@googlegroups.com
Hi, I have a field that has numerical values 1, 2, 3... and tiddlers with numbered titles like title1, title2, title3 and so on. I would like to transclude tiddlers based on the number in the field, so that when field is N, it will transclude titleN. Something like <$text text={{{ [{!!field}then{title{!!field}}] }}} /> but it doesn't work so obviously I'm doing it wrong. I'd appreciate any help.

Eric Shulman

unread,
Nov 13, 2020, 11:59:44 AM11/13/20
to TiddlyWiki
On Friday, November 13, 2020 at 7:54:45 AM UTC-8 W Yan wrote:
I would like to transclude tiddlers based on the number in the field, so that when field is N, it will transclude titleN.

Try this:
<$transclude tiddler={{{ [[Title]addsuffix{!!field}] }}} />

enjoy,
-e

W Yan

unread,
Nov 13, 2020, 12:25:02 PM11/13/20
to tiddl...@googlegroups.com
Thank you so much, just tried and it worked perfectly!
Reply all
Reply to author
Forward
0 new messages