Tranclusion a tiddler filed from another tiddler filed

38 views
Skip to first unread message

Mohammad

unread,
Jul 9, 2018, 8:49:18 AM7/9/18
to TiddlyWiki
Assume you have a tiddler titled "Tiddler-A". It has a caption filed cotains: "I am Tiddler A"

Next assume you have Tiddler-B, its summary filed contains "Tiddler-A" I want a transclusion like this in Tiddler-B

{{!!summary!!caption}}

But as it is clear, it wont work. How I can transclude like this (nested reference)

Mohammad

Mark S.

unread,
Jul 9, 2018, 10:37:32 AM7/9/18
to TiddlyWiki
In my experience, you need to "glue" the parts together with a macro, which also means you need to use a macrocall widget for invocation.

Using the new "robust" synatax with "__", it might look like:

\define deref(tid fld) <$transclude tiddler=<<__tid__>> field=<<__fld__>> />

<$macrocall $name="deref" tid={{!!summary}} fld="caption"/
>

HTH
-- Mark

Mohammad

unread,
Jul 9, 2018, 11:00:27 AM7/9/18
to tiddl...@googlegroups.com
WOW!!
That works!!
Highly appreciated Mark!

/Mohammad
Reply all
Reply to author
Forward
0 new messages