Filter Tiddlers by date of current tiddler

45 views
Skip to first unread message

Christian Macedo

unread,
Aug 8, 2019, 3:31:58 AM8/8/19
to TiddlyWiki
I've created a filter as below which aims to return a set of transcluded tiddlers.


<$list filter="[tag[JournalEntry]]">
<$link to=<<currentTiddler>>>
<$view field=created format=date template="0hh:0mm"/>:
</$link>
<$transclude tiddler={{!!title}} mode="block"/>
</$list>
<br>
{{hr}}
<br>

My aim is to filter this down to those tiddlers whose created field matches the field of the parent tiddler.

I see that I can do this manually like so:

<list filter="[tag[JournalEntry]field:created/^20190807/]"><$transclude/><br></$list>

Is there any way that I can pass the value of the parent tiddler into field:created?

Christian Macedo

unread,
Aug 9, 2019, 6:02:47 AM8/9/19
to TiddlyWiki
I addressed this in the end Although not quite how I would have preferred, the solutions works.

Each journalPage (with multiple journalEntry relatd tiddlers) needs to filter on the title which is a date.

journalPage title format: 0dd.0mm.yyyy
filter to find related tiddlers: [tag[JournalEntry]tag<currentTiddler>sort[created]]
journalEntry tag example: 08.08.2019

Reply all
Reply to author
Forward
0 new messages