> In case anyone needs this in their TW, here is my solution: > I changed the following line in TaggedTemplateTweakPlugin (which I was > already using): > > if (!tiddler) return coreTemplate > > to > > if (!tiddler) return config.tiddlerTemplates[DEFAULT_NEW_TEMPLATE]; > > where config.tiddlerTemplates[DEFAULT_NEW_TEMPLATE] and > DEFAULT_NEW_TEMPLATE are defined in a systemConfig tiddler.
1) The name of the plugin is http://www.TiddlyTools.com/#TaggedTemplateTweak 2) The TiddlyWiki constant to use is DEFAULT_EDIT_TEMPLATE not DEFAULT_NEW_TEMPLATE (which does not exist) 3) Please don't modify TaggedTemplateTweak. If you share your document with just ONE other person, then your change can 'escape' into the wild. I will not support modified plugins. See http://www.TiddlyTools.com/#LegalStatements for more explanation. 4) The proper way to make your change is to create your own, very small plugin that does it's own hijacking, e.g., [[AutoEditMissingTiddlersPlugin]] ------------------------- Story.prototype.axs_saved_chooseTemplateForTiddler =Story.prototype.chooseTemplateForTiddler Story.prototype.chooseTemplateForTiddler = function(title,template) { // get core template and split into theme and template name if (!store.getTiddler(title)) return config.tiddlerTemplates[DEFAULT_EDIT_TEMPLATE]; else return this.axs_saved_chooseTemplateForTiddler.apply(this,arguments); } ------------------------- Just enter the above into a tiddler, tag it with systemConfig, save- and-reload, and you should be all set (and be sure to get a fresh, unmodified copy of TaggedTemplateTweak before you forget!) enjoy, -e Eric Shulman TiddlyTools / ELS Design Studios ---------- Was this answer useful? If so, please help support TiddlyTools: TiddlyTools direct contributions: (paypal) http://www.TiddlyTools.com/#Donate UnaMesa tax-deductible contributions: http://about.unamesa.org/Participate (paypal) TiddlyWiki consulting: http://www.TiddlyTools.com/#ELSDesignStudios http://www.TiddlyTools.com/#Contact -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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/tiddlywiki?hl=en.

