Hi Seba
I know of (at least) three ways to make TiddlyWiki startup with a
given theme:
The theme is set by a cookie in your browser.
First option is to "hardcode" the cookie to make sure that TW will
start up with a particular theme in any browser (*and when reloaded*-
no matter what changes has been made to the temporary cookie)
1) In a tiddler tagged with systemConfig write (without the outer
quotes): "config.options.txtTheme="SystemThemeTitle";"
Second option is using the addressbar of your browser for setting a
socalled paramifier (see another post in this thread):
2) In the browser's addressline write: URL/#txtTheme:SystemThemeTitle
Third option is to "hardcode" the choice of theme directly into the
Plugin itself - however it's *NOT* advisable to change code in
original plugins - as you unintentionally could spread your modded
code to a lot of people who copies your TW, and they would have
unexpected results not documented in the plugindocs at TiddlyTools. If
you hardcode changes - rename the plugin and change the slices to
reflect that *you* have made those changes - not to bother the
original author (Eric Shulman) - as he can/will not support
modifications of his original plugin code. (Which btw I think is very
understandable!!)
3) In the SwitchThemePlugin tiddler make changes to the code.... (I
wouldn't do this...)
If TotallyTiddlers is set as startup theme (option
2=config.options.txtTheme) - and you have setup usernames to open an
editable theme (ie. default) As Eric wrote (changed txtTheme to
"default"):
//{{{
var co=config.options; // abbrev
var authors=[ 'YourUserName', 'OtherUser', 'SomeoneElse', ... ];
co.txtTheme=authors.contains[co.txtUserName]?'Stylesheet':'default' ;
//}}}
then you should be able to switch to "default" by (option 1=URL/
#txtUserName:YourUserName) -
- untested -
Cheers Måns Mårtensson