When trying to use information that's stashed in a field, I often find it
easiest to use the widget syntax. In your case, I would use the transclude
widget <https://tiddlywiki.com/#TranscludeWidget> in the target tiddler.
<$transclude tiddler={{!!sourcename}} field="myfield"/>
On Thursday, June 25, 2020 at 7:20:19 AM UTC-4, OGNSYA wrote:
>
> I want to transclude a custom field (let's call it myfield) of a tiddler
> (let's call it Source Tiddler) into another one (let's call it Target
> Tiddler).
>
> I know I can just do this in Target Tiddler (assuming the Source Tiddler's
> name is "Source Tiddler"): {{Source Tiddler!!myfield}}
>
> However, what if I want the name of that Source Tiddler to be dynamic, and
> come from a field in target Tiddler (let's call that field sourcename)?
>
> Doing this, of course, shows me the name (just a string) of that source
> tiddler: {{!!sourcename}}
>
> However it seems that I can't simply substitute that into the code above.
> In other words, this doesn't work: {{{{!!sourcename}}!!myfield}}
>
> I understand this is probably a very basic question. I suppose it has to
> do with the number of brackets, and how to communicate the fact that
> sourcename is something in the current tiddler, and myfield is something in
> another tiddler... However I can't figure out how to solve it. I'm still
> very much a beginner in TW. Thanks in advance!
>
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/5f36338f-3716-487f-b6e0-abfdd35ab75do%40googlegroups.com.