Help with hovering tiddler pop-up in list

164 views
Skip to first unread message

Noa Perlmutter

unread,
Aug 9, 2021, 8:47:42 PM8/9/21
to TiddlyWiki
Hello, everyone,

I just started using tiddlywiki today and I'm loving it! I'm trying to use this macro with dynamic lists to make a list or tiddlers where when you hover over each title, it shows a preview of the text inside that tiddler. I was trying it like this: 

<$list filter="[tag[control]]">
<<hoverTiddler {{!!title}} {{!!text}}>> <br>
</$list>

but that doesn't work (creates two new tiddler links: {{!!title}}, and {!!title}})

Does anyone have any solutions to this? Thanks so much and please let me know if I can clarify anything (I'm obviously still learning how to use all of this)!

-Noa

Soren Bjornstad

unread,
Aug 9, 2021, 9:00:57 PM8/9/21
to TiddlyWiki
Noa,

You want:

<$list filter="[tag[control]]">
<$macrocall $name="hoverTiddler" tiddler1={{!!title}} tiddler2={{!!text}}/> <br>
</$list>

You can only use constant values, not {{field transclusions}}, with the double-angle bracket <<shorthand macro syntax>>. For {{field}} or <<variable>> transclusion support, you need the full widget as shown above. Note that for this form, you need to specify the names of the macro parameters, in this case tiddler1 and tiddler2. You can find those in the macro definition if you don't know them:

\define hoverTiddler(tiddler1,tiddler2)
  ...
\end

n...@noanoa.space

unread,
Aug 11, 2021, 6:14:47 PM8/11/21
to tiddl...@googlegroups.com
Thank you so much. (I’m still adjusting to this syntax!) I just tried copying and pasting your code, but only a blank white box comes up when I hover. Any idea what could be going wrong?
--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/_S7bUO_GTTM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/6f972e8c-7e72-48c4-92ea-b1481d19f139n%40googlegroups.com.

Soren Bjornstad

unread,
Aug 11, 2021, 6:54:27 PM8/11/21
to TiddlyWiki
Not offhand. I've never used that plugin and didn't actually try the code after making the syntax change, so if what you were initially trying to do wasn't the right thing, it wouldn't work now either. :-)

You might create a small wiki that demonstrates what you're trying to do and what the problem is and upload it here – then we can take a look at the problem without having to do a bunch of extra setup work on our end and worrying about what small details we might have missed.

n...@noanoa.space

unread,
Aug 14, 2021, 1:48:06 PM8/14/21
to tiddl...@googlegroups.com
Thank you for the help! i’ve actually just discovered that TiddlyMaps does an even better version of what I’m after, so I think I’ll try using that. (:
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/00635ba4-2d1c-40f8-8e49-609035762e2fn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages