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



Ciao Stef & all

stef...@xxxxxxxxx wrote:Did you try "action-createtiddler" with the $basetitle attribute, rather than "tm-new-tiddler"? http://tiddlywiki.com/#ActionCreateTiddlerWidget

Thanks. Its getting a bit clearer, but I'm not quite there yet.

That worked to complete the titles with correct numbers: "Tweet, Tweet 1, Tweet 2" etc. Unfortunately it doesn't seem open the new "Tweet" tiddler in the editor. Here is the revised code ...

\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)$"/>

<$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>
</$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>

--
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]">[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/45fe7abb-af01-46aa-910f-89907bb3c891%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



Programming list archiving by: Enterprise Git Hosting