2024-10-20 17:47:50 +08:00
|
|
|
tags: $:/tags/Macro $:/tags/Global
|
2014-12-12 12:15:10 +01:00
|
|
|
title: $:/core/macros/timeline
|
2013-05-28 08:38:23 +01:00
|
|
|
|
2022-11-14 18:11:26 +01:00
|
|
|
<!-- Override one or both of the following two macros with a global or local macro of the same name
|
|
|
|
if you need to change how titles are displayed on a timeline -->
|
|
|
|
|
2024-10-20 17:47:50 +08:00
|
|
|
\procedure timeline-title() <$view field="title"/>
|
|
|
|
\procedure timeline-link() <$link to={{!!title}}><<timeline-title>></$link>
|
|
|
|
\procedure timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
|
2022-03-26 11:18:42 -04:00
|
|
|
\whitespace trim
|
2014-09-08 18:58:48 +01:00
|
|
|
<div class="tc-timeline">
|
2024-10-20 17:47:50 +08:00
|
|
|
<$set name="tv-tids" filter=`[!is[system]$(subfilter)$has<dateField>!sort<dateField>limit<limit>]`>
|
|
|
|
<$list filter="[enlist<tv-tids>eachday<dateField>]">
|
2014-08-28 19:41:29 +01:00
|
|
|
<div class="tc-menu-list-item">
|
2024-10-20 17:47:50 +08:00
|
|
|
<$view field=<<dateField>> format="date" template=<<format>>/>
|
|
|
|
<$list filter=`[enlist<tv-tids>sameday:$(dateField)${!!$(dateField)$}]`>
|
2014-08-28 19:41:29 +01:00
|
|
|
<div class="tc-menu-list-subitem">
|
2022-11-14 18:11:26 +01:00
|
|
|
<<timeline-link>>
|
2013-10-13 22:59:14 +01:00
|
|
|
</div>
|
2013-05-28 08:38:23 +01:00
|
|
|
</$list>
|
2013-10-13 22:59:14 +01:00
|
|
|
</div>
|
2013-05-28 08:38:23 +01:00
|
|
|
</$list>
|
2024-10-20 17:47:50 +08:00
|
|
|
</$set>
|
2014-09-08 18:58:48 +01:00
|
|
|
</div>
|
2014-09-08 18:20:30 +01:00
|
|
|
\end
|