> So if I understand correctly, you have to manually update the > ViewTemplate to add the new command for any plugin?
Manual update, yes... The standard TW document has *different* toolbar definitions for the ViewTemplate and EditTemplate... and, with the addition of plugins such as TiddlyTools' TaggedTemplateTweak, you can have any number of alternative templates that are invoked based on tagging. Thus, adding a new config.options.myCommand.handler() function is not sufficient to indicate *which* tiddler toolbar(s) the command should appear in. ViewTemplate, no... Prior to TW2.4.0, the list of toolbar commands were specified directly in each template, using this syntax: <span class='toolbar' macro='toolbar cmd1 cmd2 cmd3...'></span> Starting with TW2.4.0, this has been changed to use 'tiddler transclusion' <span class='toolbar' macro='toolbar [[ToolbarCommands::ViewToolbar]]'></span> This allows the toolbar keyword list to be stored in a separate tiddler, [[ToolbarCommands]], containing a "slice table" that defines "ViewToolbar" and "EditToolbar" slices. Simply add command keywords to the appropriate slice content, and the corresponding template automatically 'transcludes' those keywords when rendering the toolbar. enjoy, -e --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
