Use a single, dynamically-named tiddler to display a collection of other tiddlers.

89 views
Skip to first unread message

Lisa Wasserman

unread,
May 29, 2020, 11:52:06 PM5/29/20
to TiddlyWiki
My new problem is that I would like to be able to select a date, and display a single tiddler that transcludes all my project entries for that date.  I'm pretty solid on how the body of the tiddler will work; I figure that the $list widget should do the job nicely.  My problem is, that I would really like the title of my wrapper tiddler to change based on said date.  I'd like it to say something like "Daily Notes: 28-May-2020".  

It should be easy enough to create a new tiddler for each day, but I was hoping to reuse a single tiddler.  It seems like a waste otherwise.  Is this even possible?

Saq Imtiaz

unread,
May 30, 2020, 1:32:35 AM5/30/20
to TiddlyWiki
Does the tiddler Daily Notes: 28-May-2020 need to exist at all times?

Two ideas that come to mind right off:

1) Let's say you choose the date with a select. Use actions to create the tiddler for the selected day based off a template, with the correct title and the date in a field that is used to determine what to display.

OR

2) Edit your  viewtemplate and show the caption if it exists instead of the title, with the title as a fallback if there is no caption. Re-use the same tiddler for each day, setting a caption field with the title to display. 

Mat

unread,
May 30, 2020, 3:51:37 AM5/30/20
to TiddlyWiki
It should be easy enough to create a new tiddler for each day, but I was hoping to reuse a single tiddler.  It seems like a waste otherwise.  Is this even possible?

As you may know, the identity of a tiddler is its title. So if you use a single tiddler, it must either be replaced if the name is to change - or what seems to be the title must not be the title. Both are doable. I'd probably go with the latter and use my aliases plugin, thus the tiddler could be named, say, "Daily Notes" and, above your code to actually list the stuff, it could have a selectwidget that sets the alias field. 

<:-)

TonyM

unread,
May 30, 2020, 4:53:30 AM5/30/20
to TiddlyWiki
Lisa

I would call a spade a spade, I would name the tiddler something like "Review project items by date" and let the user chose the date. If you then wanted to keep a dated project items tiddler have a new tiddler button that uses the selected date to generate a dated tiddler title. Perhaps even find a way to snapshot it so if project tiddlers change, to still see the list at a moment in time.

Our imagination is the only limit but avoid compound tiddler names and store dates in fields not titles. The journal buttons have a lot to answer for here.

Regards
Tony

Lisa Wasserman

unread,
May 30, 2020, 1:29:14 PM5/30/20
to TiddlyWiki
Mat, that works nicely.  Thank you very much.

--Lisa
Reply all
Reply to author
Forward
0 new messages