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



Hi Josiah,

You could try something like this:

\define tweetButton()
<$button tooltip={{$:/language/Buttons/NewTweet/Hint}} aria-label={{$:/language/Buttons/NewTweet/Caption}} class=<<tv-config-toolbar-class>>>
<$action-createtiddler $basetitle="$(tweetTitleTemplate)$" type="text/plain"  tags="$(tweetTags)$" text="$(tweetText)$" $savetitle="!!tiddlertitle"/>


<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
{{$:/core/images/twitter}}
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewTweet/Caption}}/></span>
</$list>
<$action-sendmessage $message="tm-edit-tiddler" $param={{!!tiddlertitle}}/>
</$button>
\end
<$set name="tweetTitleTemplate" value="Tweet">
<$set name="tweetTags" value={{$:/config/NewTweet/Tags}}>
<$set name="tweetText" value={{$:/config/NewTweet/Text}}>
<<tweetButton>>
</$set>
</$set>
</$set>
Cheers,

Stef

--
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
oups.com?utm_medium=email&utm_source=footer">https://groups.google.com/d/msgid/tiddlywiki/cfd9d8eb-beb6-449a-bc68-125c792479a1%40googlegroups.com
.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting