Hi Pavlo,

Make a backup of your valuable TW file :)

Make a new tiddler titled: DisplayDefaultTiddlersLimitedPlugin
Tag it: systemConfig

and copy the following lines into it.

/***
''Be aware!''
This function will @@overwrite@@ the displayDefaultTiddlers
function from TW core. This function is called at startup time,
once from the "restart" function. If you use any plugin, that calls
the restart or displayDefaultTiddlers function they will be
influenced.
***/
/*{{{*/
Story.prototype.displayDefaultTiddlers = function() {
  var number = 2;  //change this to any number of tiddlers you want to
display
  var tids = store.filterTiddlers(store.getTiddlerText
("DefaultTiddlers"));
  if (tids.length > number) tids.length = number;
  this.displayTiddlers(null,tids);
}; // Story.proto ..
/*}}}*/

There are 6 lines of code between /*{{{*/  and  /*}}}*/ goog.le will
wrap the lines. So take care.

There is a "var number = 2;" that should be changed to a number of
tiddlers you want to display at startup. I used 2 for testing.
Don't forget to tag it "systemConfig" and reload the TW.

regards Mario

On Jan 6, 12:05 pm, Pavlo Shchelokovskyy <[email protected]>
wrote:
> Hi all,
>
> I'm quite new to TiddlyWiki, but already fascinated by it. Right now
> I'm trying to make a lab book from it using the journal functionality.
>
> The question is how could I configure the DefaultTiddlers so that only
> the latest in my journal entries will appear when TW is loaded? I can
> display them all (with [tag[journal]sorted[-created]]) but I suspect
> that with the lab book growing this will become too lengthy and slow
> (and useless) to display at startup.
>
> Thanks in advance,
> Pavlo.
-- 
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