This should do it:
<<forEachTiddler
where
'tiddler.tags.contains("information")'
sortBy
'store.getValue(tiddler,"created")'
descending
script
'
function getFirstLine(s) {
var m = s.match(/\s*(.*)/);
return m != null && m.length >= 1 ? m[1] : "";
}
' write
'(index < 5) ? "[["+tiddler.title+"]] - "+tiddler.creator+" -
"+tiddler.created+" - "+getFirstLine(tiddler.text)+"\n" : ""'>>
w
On Feb 10, 10:52 pm, magev958 <[email protected]> wrote:
> Wow, that was fast!
> Thanks for your suggestion, unfortunate it did not work :(
> When I add the
>
> '(index < 5) ?
>
> all I get is a error
>
> <<forEachTiddler ...>>:SyntaxError: Parse error
>
> The code is not mine, I found it in this forum so I don't know what
> and how it works, but it shows the title, creator, date and the first
> lines of the tiddler very beautiful :)
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/tiddlywiki?hl=en.