On Friday, August 21, 2020 at 6:35:23 AM UTC-7,
justinehe...@gmail.com wrote:
So the tiddlers linked here goes on until 2020 and I wanted to automatically link it so that I don't have to edit it on this journal and put the dates and so on. Will u help me?
Here's a bit of wikitext that generates the list by year, month, and date:
<$list filter="2018 2019 2020" variable="year">
<li><<year>></li>
<ul>
<$list filter="01 02 03 04 05 06 07 08 09 10 11 12" variable="month">
<li><<year>>.<<month>></li>
<ul>
<$vars YYYYMM={{{ [<year>addsuffix<month>] }}}>
<$list filter="[all[]tag[journal]sort[created]]">
<$list filter="[<currentTiddler>get[created]prefix<YYYYMM>then<currentTiddler>]">
<li><$link/></li>
</$list>
</$list>
</$vars>
</ul>
</$list>
</ul>
</$list>
Notes:
1) The outermost $list widget shows bullet items for each listed year
2) The next $list widget shows bullet items (indented) for each month
3) The $vars combines the year and month into a 6-digit string, "YYYYMM"
4) The next $list gets all tiddlers tagged with "journal", sorted by creation date
5) The innermost $list finds tiddlers whose creation date starts with the current YYYYMM value
6) A bullet item (indented) link to each matching tiddler is then shown
enjoy,
-e