mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-08-05 13:23:52 +00:00
Merge pull request #1221 from xcazin/timeline
Move the title display into a macro so that it can be globally overridden
This commit is contained in:
commit
a3a0002bbc
@ -1,6 +1,16 @@
|
|||||||
title: $:/core/macros/timeline
|
created: 20141212105914482
|
||||||
|
modified: 20141212110330815
|
||||||
tags: $:/tags/Macro
|
tags: $:/tags/Macro
|
||||||
|
title: $:/core/macros/timeline
|
||||||
|
type: text/vnd.tiddlywiki
|
||||||
|
|
||||||
|
\define timeline-title()
|
||||||
|
<!-- 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
|
||||||
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
|
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
|
||||||
<div class="tc-timeline">
|
<div class="tc-timeline">
|
||||||
<$list filter="[!is[system]$subfilter$has[$dateField$]!sort[$dateField$]limit[$limit$]eachday[$dateField$]]">
|
<$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$]]">
|
<$list filter="[sameday{!!$dateField$}!is[system]$subfilter$!sort[$dateField$]]">
|
||||||
<div class="tc-menu-list-subitem">
|
<div class="tc-menu-list-subitem">
|
||||||
<$link to={{!!title}}>
|
<$link to={{!!title}}>
|
||||||
<$view field="title"/>
|
<<timeline-title>>
|
||||||
</$link>
|
</$link>
|
||||||
</div>
|
</div>
|
||||||
</$list>
|
</$list>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user