Hello,
I am stuck on the creation of a filter and decided to ask for some help.
I am creating tiddlers that store information about ongoing projects. Among these information should be statement dates. Each project can have 1 or more statement dates (5/6 max).
the fields are named in a standardized way :
- prefix :
date_
- nameofthetiddler
- suffix :
_X
, with X a number from 1 to 6.
And they contain a date written as YYYYMMDD
.
I am trying to add a filter/combination of filters that will look for any field with the prefix ‘date_’ and give me both the name of the field and the name of the tiddler containing it, so that i can then access to these informations.
Here is an illustration of what I am trying to generate, for dates stored in tiddlers named Tiddler1 and Tiddler2 :
- 25 January 2025 : Tiddler1
- 12 Mars 2025 : Tiddler2
- 02 June 2025 : Tiddler1
I assumed the way to do this would be to filter all fields with prefix date_
across all tiddlers, and extract both the name of the field and the name of the tiddler.
With these two elements, I would then recover everything I need. Maybe other fields of the tiddler if that’s useful.
But my most functional code is only able to recover the name of the fields, not the name of the tiddlers containing each one of them. I’ll put it at the end of the post, even if it is not functional. All other attempts, end-up giving me an empty list.
Is what I’m trying to do possible ? How could I extract these information ?
Or should I look at an other way to achieve such result ?
my “most functional code” :
<ul>
<$list filter="[all[]fields[]prefix[date]]" variable="field">
<li><<field>> : </li>
</$list>
</ul>
Also, Is there important resources or tutorials I could refer to, in order to better understand filters in tiddlywiki ? (Outside of tiddlywiki.com and Tobibeer’s wiki).