Is it possible to automatically link tiddlers on this Journal tiddler?

84 views
Skip to first unread message

justinehe...@gmail.com

unread,
Aug 21, 2020, 9:35:23 AM8/21/20
to TiddlyWiki
photo_2020-08-21_21-29-57.jpg

So the tiddlers linked here goes on ofc 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?

Eric Shulman

unread,
Aug 21, 2020, 11:32:43 AM8/21/20
to tiddl...@googlegroups.com
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

justinehe...@gmail.com

unread,
Aug 21, 2020, 11:48:34 AM8/21/20
to TiddlyWiki
Hello! This is what happened and it did not link the tiddlers that I made earlier :< (Idk if this helps but my journal has a color & an icon)Screenshot_1.png

Eric Shulman

unread,
Aug 21, 2020, 12:08:24 PM8/21/20
to TiddlyWiki
On Friday, August 21, 2020 at 8:48:34 AM UTC-7, justinehe...@gmail.com wrote:
Hello! This is what happened and it did not link the tiddlers that I made earlier :< (Idk if this helps but my journal has a color & an icon)

If your tiddlers aren't tagged with "journal", they won't show up.  Here's a modification that will show tiddlers where the *title* starts with a date:

Replace the innermost part of the previously posted wikitext with:
            <$vars YYYYMM={{{ [<year>addsuffix[.]addsuffix<month>] }}}>
            <$list filter="[all[]prefix
<YYYYMM>sort[]]">
               
<li><$link/></li>
            </$list>
            </$vars>

Notes:
1) The YYYYMM variable now includes a dot (e.g., "YYYY.MM")
2) The $list finds all tiddlers whose *title* starts with the current YYYYMM value,  regardless of any tags.

Let me know how it goes...

-e

P.S. Could you please stop posting screen snapshots unless the problem is related to the layout itself.  Instead, use words to describe what you see.  

justinehe...@gmail.com

unread,
Aug 21, 2020, 12:22:41 PM8/21/20
to TiddlyWiki
Thank you again, it worked! About the screenshot, sorry about that, idk how to put it in words but I'll keep it in mind.
Reply all
Reply to author
Forward
0 new messages