tm-new-tiddler isn't loading my template

83 views
Skip to first unread message

Ivan Aparicio

unread,
Aug 25, 2017, 6:46:16 AM8/25/17
to TiddlyWiki
I'm trying to create a button that will create a book log tiddler:

<$button>
  ''Book''
  <$action-sendmessage 
  $message="tm-new-tiddler" 
  $template="Template:Book" 
  title="Book title" tags="Scrap [[book]]"/>
</$button>

Everything works, except for the template. I'm 100% sure that I have a tiddler named Template:Book, but it isn't being transcluded. Am I doing something wrong?

Mark S.

unread,
Aug 25, 2017, 12:01:35 PM8/25/17
to TiddlyWiki
Looking at TiddlyWiki.com, I believe it should be param="Template:Book". Is there a source somewhere else suggesting $template= ??

Good luck,
Mark

TonyM

unread,
Aug 25, 2017, 8:52:32 PM8/25/17
to TiddlyWiki
Ivan,

Try adding text="text in new tiddler" as text is simply another field. Other forms may produce more useful outcomes like text={{templatetiddler}}

I don't have the time to give you a more robust answer and others are more expert but that should help you move along.

Tony 

Ivan Aparicio

unread,
Aug 26, 2017, 4:21:29 AM8/26/17
to TiddlyWiki
Thanks Mark,

The code above, came from a question I had asked some time ago, and was answered here:


I did see the page about the  tm-new-tiddler message, and had tried the following code:

<$button>
  ''Book''
  <$action-sendmessage 
  $message="tm-new-tiddler" 
  param="Template:Book" 
  title="Book title" tags="Scrap [[book]]"/>
</$button>

However, I get the same result. Everything works but the template.

Ivan Aparicio

unread,
Aug 26, 2017, 4:22:31 AM8/26/17
to TiddlyWiki
Thanks Tony, that seems to have done it!

Mark S.

unread,
Aug 26, 2017, 2:26:34 PM8/26/17
to TiddlyWiki
For what it's worth, the actual parameter turns out after testing to be

$param=


Mark

On Friday, August 25, 2017 at 3:46:16 AM UTC-7, Ivan Aparicio wrote:

Ivan Aparicio

unread,
Aug 26, 2017, 4:34:45 PM8/26/17
to TiddlyWiki
Thanks Mark, that makes sense! It may be worth amending this tiddler: http://tiddlywiki.com/#WidgetMessage%3A%20tm-new-tiddler to reflect that it's $param and not just param.
Reply all
Reply to author
Forward
0 new messages