Hi whatever
I think you'll find the answer in this line:
> var title=(tiddler.title+alwaysTitle);
It seems like it fetches the title from the tiddler from where it is
run (tiddler.title) and adds the alwaysTitle "var alwaysTitle="'s
Dashboard".
Therefore this happens:
> when I invoke it using <<tiddler [New Buttons/
> NewUserDashboardSpecific]]>> it produces the title "New Buttons/
> NewUserDashboardSpecific's Dashboard" instead of, say, "Jake's
> Dashboard". But if I put it in the Jake tiddler, it works fine.
If you want it always to fetch the current users name as title you
must (somehow) replace "tiddler.title" with
"config.options.txtUserName, ".
I would run the script with a substitutionsmarker $1 for "var
title=($1+alwaysTitle);" and try to insert the username by running a
tiddlermacro:
<<tiddler ScriptTiddlerName with:{{config.options.txtUserName}}>> -
However I'm no programmer - and I'm sure someone else, who knows what
he's doing, might change the titlecodeline from "var
title=(tiddler.title+alwaysTitle);" to something like "var
title=(config.options.txtUserName+alwaysTitle);" and make it work...
(I haven't tested it)
Try it out - or wait for a true TwWizard to give you the *correct*
answer.. :-)
Happy hacking Måns Mårtensson