Subject: [tw] Issue: Enable numbering on tiddlers created
via a Custom Button?

Ciao all

Use Case: A button set-up for writing plain text Tweets (tweetButton). Should be auto-enumerating.The button below works. I based it on The Journal Button. There is ONE issue. Though it produces on-click a new Tiddler titled "Tweet", with the tag "tweet", and the content type "text/plain", it does not auto-add numbers.

What I really want is this ...
  • A number that auto-INCREMENTS by one every time a new "Tweet" Tiddler is created.
  • Ideally I'd like that all new tiddlers titles created by it look like this: "Tweet", "Tweet #0001", Tweet #0002 etc.
  • The leading hashtag and the leading zeros are not essential.

I notice that if I remove title="$(tweetTitleTemplate)$" from my current "tweetButton", below, then it reverts to creating the Title in the standard way, as "New Tiddler", "New Tiddler 1", "New Tiddler 2". etc. = Numbering okay. Wrong Title.

I am unclear IF I can get the behaviour I want for my use case or how to achieve it.

Any help or pointers much appreciated

Best wishes


\define tweetButton()
<$button tooltip={{$:/language/Buttons/NewTweet/Hint}} aria-label={{$:/language/Buttons/NewTweet/Caption}} class=<<tv-config-toolbar-class>>>
<$action-sendmessage $message="tm-new-tiddler" type="text/plain"  tags="$(tweetTags)$" title="$(tweetTitleTemplate)$" text="$(tweetText)$"/>
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewTweet/Caption}}/></span>
<$set name="tweetTi...

tleTemplate" value={{$:/config/NewTweet/Title}}>
<$set name="tweetTags" value={{$:/config/NewTweet/Tags}}>
<$set name="tweetText" value={{$:/config/NewTweet/Text}}>

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
To view this discussion on the web visit
For more options, visit

Programming list archiving by: Enterprise Git Hosting