> you could just put this script as the text of your DefaultTiddlers:
> <script>
> if (!readOnly)
> wikify("[[GettingStarted]]",place);
> else
> wikify("[[OnlineHomeTiddler]]",place);
> endif
> </script>
Regrettably, it's not quite that simple. The contents of
DefaultTiddlers are expected to be actual names of tiddlers to
display, as opposed to "rendered" links to tiddlers. The TWCore
doesn't apply any wiki parsing to the contents... it simply chops it
up into white-space separated parts.
The above script should *not* be placed as text in the
DefaultTiddlers. Rather, you should do this:
First create a plugin tiddler called [[SetDefaultTiddlers]], tagged
with "systemConfig", containing the following script:
----------
//{{{
if (!readOnly)
config.shadowTiddlers.DefaultTiddlers="[[GettingStarted]]";
else
config.shadowTiddlers.DefaultTiddlers="[[OnlineHomeTiddler]]");
//}}}
----------
During startup, the [[SetDefaultTiddlers]] plugin will be invoked,
assigning the shadow content of [[DefaultTiddlers]] based on the
current status of the readOnly flag (which generally defaults to TRUE
when online).
Then, **DELETE** your existing [[DefaultTiddlers]] so that the
*shadow* [[DefaultTiddlers]] definition will be applied next time you
reload the document.
enjoy,
-e
Eric Shulman
TiddlyTools / ELS Design Studios
HELP ME TO HELP YOU - MAKE A CONTRIBUTION TO MY "TIP JAR"...
http://www.TiddlyTools.com/#Donations
Professional TiddlyWiki Consulting Services...
Analysis, Design, and Custom Solutions:
http://www.TiddlyTools.com/#Contact
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.