The following is basically a "new tiddler" button but intended to use the
default title specified as a prefix, for example the prefix Bookmark.
What I want is that the first time it's used, it creates the tiddler titled
Bookmark. (I save it with that title). The next time I click the button, it
should therefore set the title to Bookmark 1 then Bookmark 2 etc. I.e just
like for New Tiddler.
What happens instead is that the first created tiddler, Bookmark, is
reopened for edit. How can I prevent this from happening?
\define newBookmark(pfix="noprefix")
> <$button tooltip={{$:/language/Buttons/NewHere/Hint}}
> aria-label={{$:/language/Buttons/NewHere/Caption}}
> class=<<tv-config-toolbar-class>>>
> <$action-sendmessage $message="tm-new-tiddler" title="$pfix$"/>
> <$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
> {{$:/core/images/new-here-button}}
> </$list>
> <$list filter="[<tv-config-toolbar-text>prefix[yes]]">
> <span class="tc-btn-text"><$text
> text={{$:/language/Buttons/NewHere/Caption}}/></span>
> </$list>
> </$button>
> \end
Thank you!
<:-)
--
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 http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/f5676be5-6cdd-4da3-aaec-21b772ba4163%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.