Hi,

I have had chance to have another quick play

> Here are some more ideas of references;
> 1) the tool tip displays number of references if tiddler has them, or if it
> has references, mouse over could pop up the list

I have solved this and made it optional. Here is the code:

if(!version.extensions.ColorfulToolbarPlugin) { //# ensure that the
plugin is only installed once
version.extensions.ColorfulToolbarPlugin = { installed: true };

config.macros.colorfulReferences = {
handler: function (place, macroName, params, wikifier,paramString,
tiddler) {
        var refAttribute = params[0] || 'color';
        var attValue    = params[1] || 'red';
        var numFlag = params[2] || 'false';

        var tids = store.getReferringTiddlers(tiddler.title);
        if (tids.length > 0) {
                var id = story.findContainingTiddler(place);
                var command_ref =
jQuery(id).find('.command_references');
                (numFlag === 'true') ?
command_ref.css(refAttribute,attValue).append('('+tids.length+')') :
command_ref.css(refAttribute,attValue);
        } //; if
} // handler

}; // config.macros

} //# end of "install only once"

> http://www.google.com/url?sa=D&q=http://hoster.peermore.com/recipes/TeamWork/tiddlers.wiki%23ColorfulToolbarPlugin&usg=AFQjCNE7Yi4t_39uCjndSCXdH6MU2KbJOw

I have updated it here too

Hope that helps.

Cheers,

Colm

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en.

Reply via email to