From 4afca0e2b8635bcdf400c4c66929d748f24ef3b2 Mon Sep 17 00:00:00 2001 From: Xavier Cazin Date: Fri, 12 Dec 2014 12:15:10 +0100 Subject: [PATCH] Move the title display into a macro so that it can be overridden Extension of the idea of 5b38c21a417d2e5e2b85aed8010c88af32420e24 --- core/wiki/macros/timeline.tid | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/core/wiki/macros/timeline.tid b/core/wiki/macros/timeline.tid index a6de187b7..1d5dfe9a9 100644 --- a/core/wiki/macros/timeline.tid +++ b/core/wiki/macros/timeline.tid @@ -1,6 +1,16 @@ -title: $:/core/macros/timeline +created: 20141212105914482 +modified: 20141212110330815 tags: $:/tags/Macro +title: $:/core/macros/timeline +type: text/vnd.tiddlywiki +\define timeline-title() + +<$view field="title"/> +\end \define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]"> @@ -9,7 +19,7 @@ tags: $:/tags/Macro <$list filter="[sameday{!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
<$link to={{!!title}}> -<$view field="title"/> +<>