Dynamic tiller name Transclusion with Templates

49 views
Skip to first unread message

Zheng Bangyou

unread,
Feb 2, 2022, 7:09:57 PM2/2/22
to TiddlyWiki
Following suggestion from Eric  (https://groups.google.com/g/tiddlywiki/c/T8lL1eeZatg/m/Ni7nUg3KCAAJ), I can stick a tiddler at the top of page. 

The sticked tiddler is the daily journal with title format `DDth MMM YYYY`.  Could I use the today as the tiddler title in the transclusion? In this case, I don't need to update the stick tiddler every day

I have tired the script below, but it is not working.

{{[<now DDth MMM YYYY>||$:/core/ui/ViewTemplate}}

{{[get<now DDth MMM YYYY>]||$:/core/ui/ViewTemplate}}

Thanks for any suggestions. 

Télumire

unread,
Feb 2, 2022, 9:14:20 PM2/2/22
to TiddlyWiki
You need to use the tiddler widget for that :

<$tiddler tiddler=<<now "DDth MMM YYYY">> >
<$transclude tiddler="$:/core/ui/ViewTemplate"/>
</$tiddler>

Zheng Bangyou

unread,
Feb 2, 2022, 9:39:13 PM2/2/22
to TiddlyWiki
Thanks Télumire,

It is the perfect solution for me.

Reply all
Reply to author
Forward
0 new messages