Documentation error in tm-new-message ?

51 views
Skip to first unread message

Mark S.

unread,
Jun 25, 2015, 5:57:24 PM6/25/15
to tiddl...@googlegroups.com

I couldn't tm-new-tiddler to work. The documentation says:


param
The optional title of a tiddler to use as a template for the new tiddler
paramObjectOptional hashmap of additional tiddler fields
navigateFromTitleTitle of the tiddler from which the navigation to the new tiddler was initiated


I think it should say:

$param
The optional title of a tiddler to use as a template for the new tiddler
$paramObjectOptional hashmap of additional tiddler fields
$navigateFromTitleTitle of the tiddler from which the navigation to the new tiddler was initiated


Can anyone confirm?
Thanks!
Mark


Jed Carty

unread,
Jun 25, 2015, 8:55:05 PM6/25/15
to tiddl...@googlegroups.com
This is working for me on tiddlywiki.com

<$button message='tm-new-tiddler' param='HelloThere'>make tiddler</$button>

if you are using the action-sendmessage widget than you use $param like this

<$button><$action-sendmessage $message='tm-new-tiddler' $param='HelloThere'>make bob</$button>

But that is because of the action-sendmessage widget, not the message.

Action widgets were added after messages and their interaction is a bit strange. The documentation is correct but it is incomplete, and a bit misleading, because it doesn't mention the action-sendmessage widget.

Mark S.

unread,
Jun 25, 2015, 10:32:28 PM6/25/15
to tiddl...@googlegroups.com
Yes, I'm using the action-sendmessage since it seems to be the only way for me to set a new title. The documentation for tm-new-tiddler talks about using a hashmap, but there are no examples of what is meant. I tried JSON a couple different ways with no luck. The question was asked in the forum, but the answer appeared to be "use action-sendmessage".

So, the parameters listed with tm-new-tiddler are not actually the parameters that work all the time. Which parameters you use depends on which widget uses it. Yes, that is incredibly confusing.
 
Should I be able to use parameters on <$button> AND use action-sendmessage? All the examples of ASM show the <$button> standing alone.

Thanks!
Mark
Reply all
Reply to author
Forward
0 new messages