If you have InlineJavaScriptPlugin installed (http://
www.tiddlytools.com/#InlineJavascriptPlugin), you could try this in
your mainMenu :

<script>
   var tid=store.getTaggedTiddlers("journal","modified")[0];
   story.displayTiddler(null,tid);
</script>

<script>
   var title=new Date().formatString("DD MMM YYYY");
   var tid=store.getTiddler(title);
   if(!tid)
store.saveTiddler(title,title,"test",config.options.txtUserName,new
Date(),["journal"],{});
   story.displayTiddler(null,title);
</script>

FrD


On 26 août, 17:47, kuyanatan <[email protected]> wrote:
> Hi everyone,
>
> 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"+"\]\]");
>
> Thank you, I appreciate your help!

-- 
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.

Reply via email to