Tiddler Templates

157 views
Skip to first unread message

Gerardo Vélez

unread,
Mar 8, 2020, 11:38:54 AM3/8/20
to TiddlyWiki
Hi all,

Before asking, would like to tell you that I have somehow managed to stick to TWC for quite a long time after the TW5 release. Made some attempts to migrate but TW5 seemed so overwhelmingly different that the learning curve always turned me down. Now I have gathered enough courage to face the storm and do the final transition and I can tell you it's being as painful as I thought it'd be. Or maybe more.

So far I'm getting info from here and there and solving my questions but this one is being haunting me for a while and I think it's so simple nobody asked for it.

I just want every single tiddler I create (no matter the tag) to have some text already in place before I start writing in the text box.

So when I click in New Tiddler, a new one pops up and the text box instead of empty has whatever text I want there. I don't need any other adjustment (at least not yet)

Any help from the amazing TW community would be greatly appreciated.

Regards,

Mat

unread,
Mar 8, 2020, 12:30:54 PM3/8/20
to tiddl...@googlegroups.com
We're many who have experienced the pain you're in. It's worth it.

IMO your question should be simple to solve.... but having tried the following I was surprised to see it doesn't work. Maybe someone can tell what I'm doing wrong:

Create a template, i.e a regular tiddler, that has the content you want. Then change the text in:

$:/core/ui/Actions/new-tiddler

into

<$action-sendmessage $message="tm-new-tiddler" $param="TITLEOFYOURTEMPLATE"/>

Nope. OK, as per this example change the content intstead to:

<$action-sendmessage $message="tm-new-tiddler" text={{TITLEOFYOURTEMPLATE}} />


...but nope again. 

So sorry. Hopefully someone else can help.

BTW regarding the shadow tiddler the $:/core/ui/Actions/new-tiddler: I note that in the prerelease the macrocall in this tiddler has added a tags parameter which is not existant in the current release. If you change this tiddler then you should take in your next update to make sure you change it accordingly.

<:-)

Jeremy Ruston

unread,
Mar 8, 2020, 1:12:33 PM3/8/20
to tiddl...@googlegroups.com
Hi Mat

You’ve found a subtle bug with the button widget that was causing it to not refresh when the “actions” attribute value changes. It’s fixed here:


The fixed version will be available at https://tiddlywiki.com/prerelease in a few minutes,

Best wishes

Jeremy

On 8 Mar 2020, at 16:30, Mat <matia...@gmail.com> wrote:

We're many who have experienced the pain you're in. It's worth it.

IMO your question should be simple to solve.... but having tried the following I was surprised to see it doesn't work. Maybe someone can tell what I'm doing wrong:

Create a template, i.e a regular tiddler, that has the content you want. Then change the text in:

$:/core/ui/Actions/new-tiddler

into

<$action-sendmessage $message="tm-new-tiddler" $param="TITLEOFYOURTEMPLATE"/>

Nope. OK, as per this example change the text intstead to:

<$action-sendmessage $message="tm-new-tiddler" text={{TITLEOFYOURTEMPLATE}} />

...but nope again. 

So sorry. Hopefully someone else can help.

BTW regarding the shadow tiddler the $:/core/ui/Actions/new-tiddler: I note that in the prerelease the macrocall in this tiddler has added a tags parameter which is not existant in the current release. If you change this tiddler then you should take in your next update to make sure you change it accordingly.

<:-)

--
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/50c41c9a-804a-402b-89e3-bbf3d6cdf7dc%40googlegroups.com.

Mat

unread,
Mar 8, 2020, 1:21:19 PM3/8/20
to TiddlyWiki
Jeremy Ruston wrote:
You’ve found a subtle bug with the button widget that was causing it to not refresh

LOL! No-refresh bugs seem to be my thing lately! 
Thanks for attending to it so quickly!

<:-)

Jeremy Ruston

unread,
Mar 8, 2020, 1:24:37 PM3/8/20
to TiddlyWiki
> LOL! No-refresh bugs seem to be my thing lately!

Thanks for digging them up, they can be quite mindbending to work on!

Best wishes

Jeremy

Gerardo Vélez

unread,
Mar 9, 2020, 4:14:00 AM3/9/20
to TiddlyWiki
Hi all,

Sorry I couldn't reply you earlier. I live in the other side of the world.

Just tried it as per Mat instructions (second option), refreshed and worked like a charm so many many thanks!

And in the process a bug was successfully caught so the outcome was great!

Regards,

Donald Coates

unread,
Mar 9, 2020, 8:33:59 AM3/9/20
to TiddlyWiki
If you haven't checked out the-book I can't recommend it enough.  Regular updates are posted here as it is a work in progress but I have found the structured presentation extremely helpful.

Gerardo Vélez

unread,
Mar 10, 2020, 3:59:34 AM3/10/20
to TiddlyWiki
Wow! I wonder how I never stumbled upon this book after so many hours wandering around looking for answers.

Many thanks for the link and I'll get sure to follow up on the updates.
Reply all
Reply to author
Forward
0 new messages