@DaveGifford I have tried using your code to achieve a preview pop-up. Whilst the pop-up works, the window it displays is totally empty.
Even your sample code gives an empty pop-up. <div class="tooltip"><a href="https://giffmex.org">Giffmex</a><div class="tooltiptext"><$transclude tiddler="New Tiddler" mode="block"/></div></div>
In Chrome that snippet as is, tested at empty.html, is showing me a link to giffmex.org and a transclusion of New Tiddler. No pop-up or tooltip. So there must be other stuff on the page where you are getting that snippet from that supplies the pop-up. Is this part of a macro?
What is transcluded is the contents of the tiddler âNew Tiddlerâ. If you donât have content in a tiddler by that title, of course it is going to be empty.
Indeed it was. What I have now realised is the âNew Tiddlerâ is an actual tiddler with the content you are transcluding rather than just a âplace holderâ! (So the initial problem is sorted.)
As this is using the TranscludeWidget I know it is possible to transclude a specific field from the tiddler, but is it possble to transclude two fields from that same tiddler consequutively? So the pop-up shows, say, âfield1 field2â
You can just duplicate the transclude widget. Copy <$transclude tiddler="New Tiddler" mode="block"/> and insert it immediately after, so the two transclude widgets are one after the other.
If youâre only displaying two fields, it may be easier just to copy the $transclude widget, as Dave suggested. But hereâs an alternate way to transclude as many fields from the same tiddler as you want (lightly modified from Daveâs code; added some tabs for legibility):
<div class="tooltip">
<a href="https://giffmex.org">Giffmex</a>
<div class="tooltiptext">
<$list filter="field1 field-a" variable=field> <!-- list all the field names you want to transclude -->
<$transclude tiddler="New Tiddler" field=<<field>> mode="block"/>
</$list>
</div>
</div>
It looks neat too. I also tweaked your CSS to make the scrollbars auto so that generally only the vertical ones appear as necessary and set with a smaller height value. If you akso delete vertical from your CSS then the popup expands to fit the text too.