Hi,

I am trying to get my TW to open the journal of the day when loaded,
and I am having partial success. Following what I found here and
there, I created a tiddler called DefaultTiddlersTweak, tagged it as
systemConfig, and put the content:

config.shadowTiddlers.DefaultTiddlers=new Date().formatString("[[DDD,
DD MMM YYYY]]");

However, this only works if the tiddler to be opened already exists. I
am trying to create one in the same tiddler, but I am not able so far.
I have tried several variations of a test case:

story.displayTiddler("ASD");

and I always get the error "TypeError: place is null" On loading the
page. Variants I have tried: adding "null", "top", "bottom" (with/
without quotes) before "ASD", copied from other places (I have seen
somewhere that the first parameter is the DOM container, no idea what
that is!); also, adding DEFAULT_EDIT_TEMPLATE or
DEFAULT_VIEW_TEMPLATE, or 2, after "ASD". I always got the same error.

I also tried

story.createTiddler("ASD");

and got the error "TypeError: place.insertBefore is not a function".
Oh, last minute news: If I put store instead of story I do get the
tiddler created and displayed. Interestingly, it seems to have been
created by nobody: "(updated 2 minutes ago  by )".

I can survive with this last solution, but I would appreciate a hint
on the errors I got on the way to it. And what is this story/store
business? I have looked for this but the documentation on javascript
functions for TW is not so easily found...

Thanks in advance,

David





--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to TiddlyWiki@googlegroups.com
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