2014-09-08 17:20:30 +00:00
|
|
|
title: $:/core/macros/timeline
|
|
|
|
tags: $:/tags/Macro
|
2013-05-28 07:38:23 +00:00
|
|
|
|
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-03 17:26:51 +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-03 17:26:51 +00:00
|
|
|
<$view field="dateField" format="date" template="$format$"/>
|
|
|
|
<$list filter="[sameday{!!dateField}!is[system]$subfilter$!sort[dateField]]">
|
2014-08-28 18:41:29 +00:00
|
|
|
<div class="tc-menu-list-subitem">
|
2013-10-13 21:59:14 +00:00
|
|
|
<$link to={{!!title}}>
|
|
|
|
<$view field="title"/>
|
|
|
|
</$link>
|
|
|
|
</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
|