Addendum:
The solution I provided copies the text
field from the “target” tiddler to the $:/temp/modal/...
tiddler.
This works just fine, unless that tiddler content depends upon other fields from the same target tiddler.
To handle that situation, change this line:
<$action-setfield $tiddler=<<temp>> subtitle="$tid$" text={{$tid$}} mask-closable=yes/>
to these two lines:
<$action-setfield $tiddler="$tid$" title=<<temp>>/>
<$action-setfield $tiddler=<<temp>> subtitle="$tid$" mask-closable=yes/>
- The first line effectively copies ALL of the fields from the target tiddler to the temp tiddler (without even needing to know what those fields are!). This works because setting the
title
of the target tiddler doesn’t actually change the title of that tiddler but simply creates a new tiddler with the specified title and the same fields and values as the original tiddler.
- The second line then adds the
subtitle
and mask-closeable
fields used by the modal display.
-e