On Apr 24, 2:02 pm, Eric Shulman <[email protected]> wrote:
> > I'm trying to add a new link to the toolbar and I'm unable to get it
> > to work.  I've looked at thehttp://tiddlywiki.org/wiki/Dev:Toolbar_Commands
> > page and also at numerous other plugins but I can't convince my
> > TiddlyWiki to add the extra link.  I'm using the stock 2.5.0 version.
> > Is there something else that is required to make the example from the
> > Wiki work?
>
> In addition to defining the new toolbar command handler (using a
> tiddler tagged with systemConfig... don't forget to save-and-
> reload...), you also have to add a keyword reference to the new
> command in [[ToolbarCommands]].
>
> The keyword for a toolbar command is the same as the object name that
> defines the handler for that command.  Thus, if your handler was
> defined by:
>    config.options.myCommand = {
>       handler: function (...) {
> Then you would insert "myCommand" into the desired toolbar slice
> definition.


Eric,

Thanks for the quick reply.

So if I understand correctly, you have to manually update the
ViewTemplate to add the new command for any plugin? I would have
eventually done that out of frustration but it's not really what I
expected. I figured that creating config.commands.myCommand would
automagically append to the toolbar. Or maybe that's just what I
inferred from reading the Wiki page.

Thanks,

Jeff



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" 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/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to