is TOC the answer for list/sublist?

78 views
Skip to first unread message

Dave

unread,
Jan 24, 2020, 11:00:39 AM1/24/20
to TiddlyWiki
I have this list

<ul>
    <$list filter="[days[-14]!is[system]!sort[modified]limit[20]]">
    <li>
      <$link><$view field="title"/></$link> <$view field='modified' format="date" template="DDth mmm "/>
    </li>
  </$list>
</ul>

that gives something like this

Is there a way (I'm guessing by using TOC) to make that list a bit more structured, kind of like the real Recents list is?


Thanks,
- Dave 

Eric Shulman

unread,
Jan 24, 2020, 12:01:02 PM1/24/20
to TiddlyWiki
You want to use the <<timeline>> macro (see https://tiddlywiki.com/#timeline%20Macro)

For your purposes, something like this:
<<timeline limit:20 subfilter:"days[-14]" format:"DDth mmm">>

enjoy,
-e

Dave

unread,
Jan 24, 2020, 12:12:53 PM1/24/20
to TiddlyWiki
Nice!  That's exactly it :)  

Somehow my "normal" Recent Tiddlers tab got screwed up and I wasn't able to figure out what caused it, so that works perfectly - Thank you!!

TonyM

unread,
Jan 24, 2020, 7:16:41 PM1/24/20
to TiddlyWiki
Dave,

I am not sure if this exactly relevant, but its a useful tip anyway.

Remember if you edit system tiddlers supplied buy tiddlywiki deleting them can restore the underlying shadow tiddler. Clone the existing one then delete the originally named tiddler and see if that fixes it, if not you can restore the customised one by renaming the clone back to the original title.

Regards
Tony
Reply all
Reply to author
Forward
0 new messages