This seems to work (title:$:/core/ui/Buttons/save_and_close , 
tags:$:/tags/EditToolbar)

<$set name="ogtiddler" value={{!!draft.of}}>
> <$fieldmangler><$button tooltip={{$:/language/Buttons/Save/Hint}} 
> aria-label={{$:/language/Buttons/Save/Caption}} 
> class=<<tv-config-toolbar-class>>>
> <$action-sendmessage $message="tm-add-tag" $param={{$:/temp/NewTagName}}/>
> <$action-deletetiddler $tiddler="$:/temp/NewTagName"/>
> <$action-sendmessage $message="tm-add-field" 
> $name={{$:/temp/newfieldname}} $value={{$:/temp/newfieldvalue}}/>
> <$action-deletetiddler $tiddler="$:/temp/newfieldname"/>
> <$action-deletetiddler $tiddler="$:/temp/newfieldvalue"/>
> <$action-sendmessage $message="tm-save-tiddler"/>
> <$action-sendmessage $message="tm-close-tiddler" $param=<<ogtiddler>>/>
> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
> OK
> </$list>
> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
> <span class="tc-btn-text"><$text 
> text={{$:/language/Buttons/Save/Caption}}/></span>
> </$list>
> </$button>
> </$fieldmangler>
> </$set>


The mechanism is <$set name="ogtiddler" value={{!!draft.of}}> to grab the 
name of the tiddler and <$action-sendmessage $message="tm-close-tiddler" 
$param=<<ogtiddler>>/> to close it. 

Change 'OK' to whatever you'd like the button to look like.

Regards,
Richard
 

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/aabbce94-7b57-4574-8fb6-8ca1a1ad7d00%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to