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



Ciao Stef

Unfortunately neither version works for me. They open a new tiddler for editing but the Title is blank :-(

Josiah

ste...@xxxxxxxxx wrote:Here is my code again, with a small correction:


\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={{$:/config/NewTweet/Title}}>
<$set name="tweetTags" value={{$:/config/NewTweet/Tags}}>
<$set name="tweetText" value={{$:/config/NewTweet/Text}}>

<<tweetButton>>
</$set>
</$set>
</$set>
Cheers,

Stef

On Friday, August 11, 2017 at 4:57:00 PM UTC+2, ste...@xxxxxxxxx wrote:Hi Josiah,

You could try something like this:


--
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
xxxxx">[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/73e93bb5-b085-4fab-96e0-23ca118bc798%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting