On Thursday, March 27, 2014 5:37:56 PM UTC-7, DrCory wrote:
Is there a way to customize the tooltips feature?
By that I mean, when you mouseover a tiddlyLink (to a tiddler) I would
like to put my own tooltip rather than the customary 'author, created,
modified' that the system puts in. I assume I'll need a 'field' and
something in that field for each tiddler. any help/thoughts???
For ease of implementation, I suggest using a tiddler slice, rather than a
custom field. Try this:
1) Put the following javascript code into a tiddler, tagged with
systemConfig, then save-and-reload your document
//{{{
Tiddler.prototype.TWCore_getSubtitle=Tiddler.prototype.getSubtitle;
Tiddler.prototype.getSubtitle = function() {
return store.getTiddlerSlice(this.title,'tooltip')||this.TWCore_getSubtitle
();
};
//}}}
2) To override the default tooltip for a given tiddler, add a tooltip:
slice entry into that tiddler's text, like this:
/%
tooltip: this is the custom text
%/
Note the use of /% and %/ comment markers surrounding the slice definition.
This prevents the embedded slice definition from being displayed in the
tiddler output.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY TIP JAR...
http://TiddlyTools.github.com/fundraising.html#MakeADonation
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.