1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-08-02 09:10:37 +00:00
TiddlyWiki5/editions/prerelease/tiddlers/staging/filters/examples/recent.tid
Jermolene 9e1741a549 Move 5.1.10-specific content to "staging" folder
So that we can build tw5.com with 5.1.9 for content updates.
2015-07-29 08:23:38 +01:00

19 lines
645 B
Plaintext

tags: [[recent Operator]] [[Operator Examples]]
title: recent Operator (Examples)
type: text/vnd.tiddlywiki
<<.operator-example 1 "[recent[1]]" "tiddlers modified yesterday and today">>
<<.operator-example 2 "[recent:created[14]]" "tiddlers created within the last 14 days">>
The filter can be used to highlight new items in a list. For example:
<$macrocall
$name="wikitext-example-without-html" src=
"""
<ul>
<$list filter="[tag[ReleaseNotes]!<currentTiddler>!sort[modified]]">
<li>
<$link><$view field="title"/></$link><$list filter="[<currentTiddler>recent[90]]"> @@color:red;^^new^^@@</$list>
</li>
</$list>
</ul>
"""/>