In my original design I anticipated that the tiddler ADemoEquation might be deleted.
So I originally used <<newTiddler title:'ADemoEquation' tag: 'demo' label: 'A Click Only Demo'>> so it would generate a new ADemoEquation just in case. This has the advantage of automatically setting the tiddler into edit mode upon rendering and if ADemoEquation already exists it will use the TaggedTemplateTweak 'demoEditTemplate' to display it. However if ADemoEquation tiddler doesn't already exist then upon rendering the new tiddler does open in edit mode but doesn't use demoEditTemplate to display it. You must click done and then edit to get it to display using demoEditTemplate. This was what I was trying to correct when I thought a shadow tiddler might fix the problem. Since a shadow tiddler can't be tagged I tried Eric's suggestion of using the tiddler title to display it i.e. ADemoEquationEditTemplate. However this has the same effect as before of not using ADemoEquationEditTemplate until done is clicked and it is put back into edit mode. Therefore I suspect I can't achieve what I wanted. Since a shadow tiddler is redundant in this case, can someone tell me how to remove a shadow tiddler that has been created? Morris On Apr 20, 6:35 pm, Eric Shulman <[email protected]> wrote: > > However it is viewed with demoEditTemplate which requires the tag > > 'demo' to show the instructions and the demo buttons. > > I assume that you are using > http://www.TiddlyTools.com/#TaggedTemplateTweak > to associate the 'demo' tag with the 'demoEditTemplate'. > > Unfortunately, as already noted, you can't add tags to shadow > definitions (because they aren't really tiddler objects), so > associating a shadow tiddler with a given tagged template can't be > done... at least not directly... > > Fortunately, TaggedTemplateTweak can also associate specific tiddler > *titles* with custom templates, by using the tiddler title itself as a > prefix... thus, to apply a custom template to a shadow tiddler named > [[ADemoEquation]], you would create a template called > [[ADemoEquationViewTemplate]]. In fact, you could even define that > template itself as a shadow, simply by copying the contents from > [[demoViewTemplate]], like this: > > config.shadowTiddlers.ADemoEquationViewTemplate=store.getTiddlerText > ("demoViewTemplate"); > > enjoy, > -e > Eric Shulman > TiddlyTools / ELS Design Studios --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

