2014-12-12 11:15:10 +00:00
|
|
|
created: 20141212105914482
|
|
|
|
modified: 20141212110330815
|
2014-09-08 17:20:30 +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
|
|
|
|
2014-12-12 11:15:10 +00:00
|
|
|
\define timeline-title()
|
2020-04-15 11:35:35 +00:00
|
|
|
\whitespace trim
|
2014-12-12 11:15:10 +00:00
|
|
|
<!-- Override this macro with a global macro
|
|
|
|
of the same name if you need to change
|
|
|
|
how titles are displayed on the timeline
|
|
|
|
-->
|
|
|
|
<$view field="title"/>
|
|
|
|
\end
|
2014-11-03 17:26:51 +00:00
|
|
|
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
|
2014-09-08 17:58:48 +00:00
|
|
|
<div class="tc-timeline">
|
2014-11-05 09:30:40 +00:00
|
|
|
<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
|
2014-08-28 18:41:29 +00:00
|
|
|
<div class="tc-menu-list-item">
|
2014-11-05 09:30:40 +00:00
|
|
|
<$view field="$dateField$" format="date" template="$format$"/>
|
2015-04-09 03:10:09 +00:00
|
|
|
<$list filter="[sameday:$dateField${!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
|
2014-08-28 18:41:29 +00:00
|
|
|
<div class="tc-menu-list-subitem">
|
2020-04-15 11:35:35 +00:00
|
|
|
<$link to={{!!title}}><<timeline-title>></$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>
|
2014-09-08 17:58:48 +00:00
|
|
|
</div>
|
2014-09-08 17:20:30 +00:00
|
|
|
\end
|