Bundle list filter results by edited?

71 views
Skip to first unread message

David Gifford

unread,
Apr 17, 2018, 9:42:34 AM4/17/18
to TiddlyWiki
Hi all

Wow, I am getting rusty. I have the following list filter:

<$list filter="[!is[system]is[tiddler]!title[HQ]!tag[agmorg]!sort[edited]]"><span class="bluetextbox"><$transclude field="text" mode="block"/></span></$list>

But I want the results separated by date edited, similar to what happens in the recent tab, so it looks like this

<h2>Most recent date edited</h2>

Tiddler 4
Tiddler 3

<h2>Previous date edited</h2>

Tiddler 2
Tiddler 1

I probably knew how to do this years ago, but now I am drawing a blank. Any help?

Diego Mesa

unread,
Apr 17, 2018, 9:55:56 AM4/17/18
to TiddlyWiki
Hey David,

Does the timeline macro not work?

$:/core/macros/timeline

The Recents tab is just a call to timeline:

<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/>

Diego

David Gifford

unread,
Apr 17, 2018, 10:01:57 AM4/17/18
to tiddl...@googlegroups.com
Hi Diego, I was looking at that macro. But as you can see from my previous post, I want to format the dates as h2, and transclude the tiddlers as text boxes. So I am not sure how to do that.

David Gifford
Mexico team leader, Mexico City

Resonate Global Mission
Engaging People. Embracing Christ.
A Ministry of the Christian Reformed Church
resonateglobalmission.org


--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/BxGQhs6aV2Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/8cf91d7c-7c12-4c46-b6c4-70665c27b014%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Mark S.

unread,
Apr 17, 2018, 10:18:47 AM4/17/18
to TiddlyWiki
I don't know what you mean by "as text boxes". Anyway, looking at the timeline macro, you can see that it takes two lists. The outer list finds the unique days, and the inner list generates the tiddlers for that day. So it might look like:

<$list filter="[!is[system]is[tiddler]!title[HQ]!tag[agmorg]!sort[edited]]eachday[edited]]">

<h2><$view field="edited" format="date" /></h2>

<$list filter="[sameday:edited{!!edited}!is[system]!sort[edited]]">

<$view field="title" /><br/>

</$list>
</$list>

You'll have to play with it and tweak formatting, etc. But that should get you started. The "edited" field must be in the date format used by TW, BTW.

-- Mark
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.

David Gifford

unread,
Apr 17, 2018, 10:31:22 AM4/17/18
to tiddl...@googlegroups.com
Thanks, Mark, that was just what I needed! Here is my adaptation:

<$list filter="[!is[system]is[tiddler]!title[HQ]!sort[modified]eachday[modified]]">

<h2><$view field="modified" format="date" /></h2>

<$list filter="[!is[system]is[tiddler]!title[TOPIC XXX]!sort[modified]]"><span class="textbox"><$transclude field="text" mode="block"/></span></$list>

</$list>

I can figure out later how to remove the time from the date format. Blessings and thanks again!

David Gifford
Mexico team leader, Mexico City

Resonate Global Mission
Engaging People. Embracing Christ.
A Ministry of the Christian Reformed Church
resonateglobalmission.org


To unsubscribe from this group and all its topics, send an email to tiddlywiki+unsubscribe@googlegroups.com.

To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
Reply all
Reply to author
Forward
0 new messages