> I'm trying to change DefaultTiddlers so that it displays the latest
> journal and a new one for today. However, I can't make it display
> both. If it's possible, can someone please help me?
>
> The code to display the latest journal:
> config.shadowTiddlers["DefaultTiddlers"] =
> "[["+store.getTaggedTiddlers("journal","modified").reverse()[0].title
> +"]]";
>
> The code to display a new journal for today:
> config.shadowTiddlers.DefaultTiddlers=new Date().formatString("\[\
> ["+"DDD, MMM DD YYYY"+"\]\]");
[[DefaultTiddlers]] can contain a *list* of tiddler titles (and/or tag
filters), stored as a white-space separated list of titles.
To open several tiddlers, simply write:
[[SomeTiddler]] [[SomeOtherTiddler]] [[YetAnother]] etc.
For your purposes, you can just combine the code for the two pieces of
text you already generate, like this:
config.shadowTiddlers["DefaultTiddlers"] = "[["
+ store.getTaggedTiddlers("journal","modified").reverse()[0].title
+ "]] [["
+ new Date().formatString("DDD, MMM DD YYYY")
+ "]]";
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
--
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.