Tiddler's subtitle modification

74 views
Skip to first unread message

Marc-Olivier Picard

unread,
Jul 26, 2017, 10:14:12 AM7/26/17
to tiddly...@googlegroups.com
Hi everyone,

I need your help to modify the subtitle of tiddlers in TW5 to make it show the modification date in parentheses, after the creation date, only if the tiddler has been modified after its creation. I know I have to modify the ShadowTiddler $:/core/ui/ViewTemplate/subtitle, but I don't know what to change.

Mat

unread,
Aug 1, 2017, 12:40:41 PM8/1/17
to TiddlyWikiDev
Hi Marc-Olivier. I think this should work:

<$reveal type="nomatch" state=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-subtitle">
<$link to={{!!modifier}}>
<$view field="modifier"/>
</$link>
<$view field="created" format="date" template={{$:/language/Tiddler/DateFormat}}/>
<$list filter="[{!!modified}!prefix{!!created}]">
(<$view field="title" format="date" template={{$:/language/Tiddler/DateFormat}}/>)
</$list>
</div>
</$reveal>

BUT, if I recall, a tiddler is always treated as modified as it is created so you always get both dates showing with this. I think there has been discussion about this but I'm not sure what the reason is behind it.

<:-)
Reply all
Reply to author
Forward
0 new messages