> Is it possible to save the config.options.var as a real var in the tw > file, so it can be used next start up?
http://www.TiddlyTools.com/#CookieSaverPlugin auto-generates a "CookieJar" tiddler, tagged with 'systemConfig' containing javascript assignment statements of the form: config.options["chkSomeFlag"]=true; // for checkboxes config.options["txtSomeText"]="foobar"; // for text input fields > If not, how could I keep the value, maybe just replacing it in the > code on the line were undefined is tested ? In general, you can hand-edit the following code into a tiddler tagged with systemConfig (e.g., the aforementioned [[CookieJar]]): if (config.options["chkSomeFlag"]===undefined) config.options["chkSomeFlag"]=true; // or false if (config.options["txtSomeFlag"]===undefined) config.options["txtSomeFlag"]="foobar"; The above usage applies a 'hard-coded' value to an option setting only if a cookie-based value is was not already set. If you want to always use a fixed-value setting, then simply remove the conditional checks so that the assignments are always performed at startup, regardless of any stored cookie that may or may not be defined. re: AutoNumberPlugin... you might want to check out http://www.TiddlyTools.com/#CopyTiddlerPlugin which replicates any existing tiddler, automatically finding the 'next available number' to append to the new tiddler's title (to avoid collision with the existing tiddler).. enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" 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/tiddlywikidev?hl=en -~----------~----~----~----~------~----~------~--~---
