> !ViewTemplateToolbar
> <div class='toolbar'>
> <span macro="hideWhenTagged lockedTiddler">
> <span macro='toolbar editTiddler closeTiddler'></span>
> </div>
You have an unmatched <span>. It should be:
<div class='toolbar'>
<span macro="hideWhenTagged lockedTiddler">
<span macro='toolbar editTiddler closeTiddler'></span>
</span>
</div>
> not sure what part of Core Tweaks you are referring to.
CoreTweaks #610 adds 'tiddler transclusion' to the toolbar syntax.
A toolbar definition is composed of a space-separated list of 'toolbar
command keywords' that are defined by the TW core code, as well as
plugin code that adds extra keywords. Normally, if you enter an
unknown keyword in the toolbar definition, it is simply ignored.
However, with the #610 tweak installed, an unrecognized keyword is
treated as a tiddler title and, if the tiddler actually exists, it's
content is inserted into the toolbar output, allowing you to use
regular wiki links and macros as 'fake' toolbar commands.
For example, if you want to add the <<newTiddler>> macro to every
tiddler's toolbar, you could start by creating a tiddler called
[[NewTiddlerCommand]], containing just:
<<newTiddler label:"new">>
Then, in [[ToolbarCommands]], simply add "NewTiddlerCommand" to the
toolbar definition, like this:
|~ViewToolbar|closeTiddler closeOthers NewTiddlerCommand
+editTiddler ... |
The result is that the <<newTiddler>> macro from [[NewTiddlerCommand]]
is rendered into the toolbar so it can be easily invoked from any
tiddler.
> Relatedly, is there a way to make the "edit" button request a password
> before allowing editing?
Try this:
http://www.TiddlyTools.com/#TiddlerPasswordPlugin
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---