Cleanest way to change the displayed tooltip for links..

200 views
Skip to first unread message

JDR

unread,
Mar 15, 2009, 3:48:08 PM3/15/09
to TiddlyWiki
I hope this hasn't been covered before, but I haven't found an answer
yet..

I'm looking for a clean way to modify what tooltip is displayed when
you mouseover a link. Particularly, I want to change the MainMenu
links' tooltips to be something more useful than the TiddlerSubtitle
with last updated info. So far it seems like the options are:

1. use raw html in MainMenu to provide links rather than wikiwords
2. edit some combination of StyleSheet and/or ViewTemplate (not sure
exactly where to go with this)
3. Somehow change what info is saved as TiddlerSubtitle for the pages
that go in my MainMenu

If I'm missing something simple, please enlighten me. The closet thing
I could find was the syntax of <<slider>>, but that doesn't seem
useful in MainMenu. The only reason I want to avoid (1) is that I was
hoping to set a different link color for external links and if I'm not
mistaken, using raw html will make the menu items look like external
links even when they are not.

Thanks,
JDR

Eric Shulman

unread,
Mar 15, 2009, 4:46:00 PM3/15/09
to TiddlyWiki
> I'm looking for a clean way to modify what tooltip is displayed when
> you mouseover a link. Particularly, I want to change the MainMenu
> links' tooltips to be something more useful than the TiddlerSubtitle

http://www.TiddlyTools.com/#CoreTweaks##637

demonstrates the use of Tiddler.prototype.getSubtitle() to define a
custom format for the 'tiddler tooltip'.

Also, when using 'raw html', you can set class="tiddlyLinkExisting" to
make a link look like a normal TiddlyLink.

enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios



JD Rogers

unread,
Mar 15, 2009, 11:14:11 PM3/15/09
to Tiddl...@googlegroups.com
>> I'm looking for a clean way to modify what tooltip is displayed when
>> you mouseover a link. Particularly, I want to change the MainMenu
>> links' tooltips to be something more useful than the TiddlerSubtitle
>
> http://www.TiddlyTools.com/#CoreTweaks##637
>
> demonstrates the use of Tiddler.prototype.getSubtitle() to define a
> custom format for the 'tiddler tooltip'.

Bingo! Exactly what I was searching for. I'm ashamed that I couldn't
find that on my own, thanks for the quick reply.

> Also, when using 'raw html', you can set class="tiddlyLinkExisting" to
> make a link look like a normal TiddlyLink.

Ah, that's useful too. I may be even more ashamed to admit that I am
debating if I want to add CoreTweaks at 22k or just go with that. :-)

Is there anything wrong with dropping one of these blocks from
CoreTweaks into a tiddler to get just that tweak? I assumed you have
to tag it config.

Thanks!
JDR

Reply all
Reply to author
Forward
0 new messages