Skip to content

Commit a0caa0f

Browse files
authored
Fix timeline macro showing long list of tiddlers created the same day. (#8690)
1 parent e1287a9 commit a0caa0f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

core/wiki/macros/timeline.tid

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
created: 20141212105914482
2-
modified: 20141212110330815
3-
tags: $:/tags/Macro
1+
tags: $:/tags/Macro $:/tags/Global
42
title: $:/core/macros/timeline
53

64
<!-- Override one or both of the following two macros with a global or local macro of the same name
75
if you need to change how titles are displayed on a timeline -->
86

9-
\define timeline-title() <$view field="title"/>
10-
\define timeline-link() <$link to={{!!title}}><<timeline-title>></$link>
11-
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
7+
\procedure timeline-title() <$view field="title"/>
8+
\procedure timeline-link() <$link to={{!!title}}><<timeline-title>></$link>
9+
\procedure timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
1210
\whitespace trim
1311
<div class="tc-timeline">
14-
<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
12+
<$set name="tv-tids" filter=`[!is[system]$(subfilter)$has<dateField>!sort<dateField>limit<limit>]`>
13+
<$list filter="[enlist<tv-tids>eachday<dateField>]">
1514
<div class="tc-menu-list-item">
16-
<$view field="$dateField$" format="date" template="$format$"/>
17-
<$list filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
15+
<$view field=<<dateField>> format="date" template=<<format>>/>
16+
<$list filter=`[enlist<tv-tids>sameday:$(dateField)${!!$(dateField)$}]`>
1817
<div class="tc-menu-list-subitem">
1918
<<timeline-link>>
2019
</div>
2120
</$list>
2221
</div>
2322
</$list>
23+
</$set>
2424
</div>
2525
\end

0 commit comments

Comments
 (0)