2024-10-22 12:15:34 +00:00
|
|
|
tags: $:/tags/Macro
|
2014-12-12 11:15:10 +00:00
|
|
|
title: $:/core/macros/timeline
|
2013-05-28 07:38:23 +00:00
|
|
|
|
2022-11-14 17:11:26 +00: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 09:47:50 +00: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 15:18:42 +00:00
|
|
|
\whitespace trim
|
2014-09-08 17:58:48 +00:00
|
|
|
<div class="tc-timeline">
|
2024-10-20 09:47:50 +00: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 18:41:29 +00:00
|
|
|
<div class="tc-menu-list-item">
|
2024-10-20 09:47:50 +00:00
|
|
|
<$view field=<<dateField>> format="date" template=<<format>>/>
|
|
|
|
<$list filter=`[enlist<tv-tids>sameday:$(dateField)${!!$(dateField)$}]`>
|
2014-08-28 18:41:29 +00:00
|
|
|
<div class="tc-menu-list-subitem">
|
2022-11-14 17:11:26 +00:00
|
|
|
<<timeline-link>>
|
2013-10-13 21:59:14 +00:00
|
|
|
</div>
|
2013-05-28 07:38:23 +00:00
|
|
|
</$list>
|
2013-10-13 21:59:14 +00:00
|
|
|
</div>
|
2013-05-28 07:38:23 +00:00
|
|
|
</$list>
|
2024-10-20 09:47:50 +00:00
|
|
|
</$set>
|
2014-09-08 17:58:48 +00:00
|
|
|
</div>
|
2014-09-08 17:20:30 +00:00
|
|
|
\end
|