Setting YourName Globally

281 views
Skip to first unread message

Digital Doctor

unread,
Dec 7, 2007, 6:06:14 PM12/7/07
to TiddlyWiki
How can I define YourName once and for
all; so I don't have to keep resetting it, every
time I start a new tiddler.

Just when I think I have it set, I look up and
its undefined 'again'; like in this TW: http://digitaldr.org/template1.html

Thanks.

RC

wolfgang

unread,
Dec 7, 2007, 6:21:22 PM12/7/07
to TiddlyWiki
Put the following in a tiddler and tag it systemConfig

config.options.txtUserName = "Digital Doctor";

W

Digital Doctor

unread,
Dec 7, 2007, 6:40:57 PM12/7/07
to TiddlyWiki
I attempted naming this tiddler DigitalDoctor,
UserName, (nothing at all); and still I get this
error:

Error: SyntaxError: unterminated string literal

RC

wolfgang

unread,
Dec 7, 2007, 7:06:54 PM12/7/07
to TiddlyWiki
Naming it zconfiguration would work best, because being invoked last
it would overwrite every option before it. Taken from Dawn:

http://project.dahukanna.net/tiddlywiki/twextensions.htm#zconfiguration

Why you get this error is a mystery to me. It always worked for me.

Regards,

W.

Digital Doctor

unread,
Dec 7, 2007, 7:18:06 PM12/7/07
to TiddlyWiki
Mystery indeed. Even zconfiguration didn't work.

Oh well. I'll stumble upon a solution.

RC

FND

unread,
Dec 8, 2007, 1:55:35 AM12/8/07
to Tiddl...@googlegroups.com
> I attempted naming this tiddler DigitalDoctor,
> UserName, (nothing at all)

The name of the tiddler doesn't make much of a difference in this case.
Tiddlers tagged as "systemConfig" are normally loaded in alphabetical
order, and those loaded last take precedence. So if your tiddler was
named "aaa", and some other plugin named "zzz" would alter the username,
the latter's changes would override your plugin.

> Error: SyntaxError: unterminated string literal

Sounds like you forgot to close the quotes or something.
Let's try this again:
1. Create a tiddler, give it any name, and tag it as "systemConfig".
2. Copy and paste the following into the tiddler's body:
config.options.txtUserName = "Digital Doctor";
3. Save changes and reload.
That should do it.

More info here:
http://www.tiddlywiki.org/wiki/Configuration_Options

HTH.


-- F.

Digital Doctor

unread,
Dec 8, 2007, 2:10:44 AM12/8/07
to TiddlyWiki
Three time's a charm.

Thanks FND.
Reply all
Reply to author
Forward
0 new messages