Hi, a long time ago I got some help with the code to get a one line of
the tiddler content in an FET-list -
http://groups.google.com/group/tiddlywiki/browse_frm/thread/72450492805721f0?hl=en&tvc=1
<<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" : ""'>>
My question this time is if I can get different formating depending on
tag? For example if I have "priority1", "priority2", "priority3", can
I get "priority2" with a red border and "priority3" with a yellow
background?
Thanks in advance/
--
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.