On Wednesday, May 20, 2015 at 11:11:58 PM UTC-7, Mat wrote:
>
> 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? 
>
>>
You were VERY close!

The problem is this line: 
<$action-sendmessage $message="tm-new-tiddler" title="$pfix$"/>

According to the documentation <$action-sendmessage 
$message="tm-new-tiddler" ...> only knows about three possible parameters 
names:

param
The optional title of a tiddler to use as a template for the new tiddler
paramObject
Optional hashmap of additional tiddler fields
navigateFromTitle
Title of the tiddler from which the navigation to the new tiddler was 
initiated

However, you used title="$pfix$".. and "title" is not a recognized param 
name for this message.

You need to use $param="$pfix$" instead.  If you make that one change, then 
the "auto numbering" will work as you expected.

enjoy,
-e
Eric Shulman
ELS Design Studios
TiddlyTools - "Small Tools for Big Ideas!"
InsideTiddlyWiki: The Missing Manuals

YOUR DONATIONS ARE VERY IMPORTANT!
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
   http://TiddlyTools.github.com/fundraising.html#MakeADonation

Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
   http://www.TiddlyTools.com/#Contact

-- 
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/6c1fd0a0-a36d-49ec-b674-e7ab45f8725f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to