Yeah, but that sample I created is one button that will batch-create an unlimited number of missing tiddlers. You just need to modify it so that it creates all tiddlers with your preferrred default values. That's a fair bit of good bang for the buck.
More suitable for your purposes: I'd suggest that you create an alternative tiddler save button that saves the tiddler and then immediately does the batch-creation of missing tiddlers in the same was as my "Missing Tiddlers Manager" does. I suggest that instead of altering the current save mechanism just to future-proof your custom save. On Sunday, May 2, 2021 at 9:04:33 AM UTC-3 isd196...@gmail.com wrote: > So, it's looking very much like the buttons are the only way to go with > this. Shame, but I already have a couple of custom buttons so its not > exactly a hardship, Id just rather be able to type as normal, save that > Tiddler and then immediately click on a link to a non-existent tiddler and > carry on. Oh well. > > Thanks to everyone for your suggestions. I have buttons already so Ill > have to keep going with them for now. > > Regards > > JK > > On Sat, 1 May 2021 at 18:32, Charlie Veniot <cj.v...@gmail.com> wrote: > >> Hello again, >> >> If I were setting up to do what I think you're looking for, I would use Code >> Pattern: Missing Tiddlers Manager >> <https://groups.google.com/g/tiddlywiki/c/8-BL-2wNXbw> as my starting >> point, likely placing the manager in the sidebar. >> >> If had had a variety of default content for different kinds of tiddlers, >> I think I'd have a series of buttons for each missing tiddler, one "create >> this tiddler with these defaults" button for each type of tiddler I'd want >> to create, for every missing tiddler. >> >> Something like that. >> >> On Saturday, May 1, 2021 at 11:23:13 AM UTC-3 Charlie Veniot wrote: >> >>> BTW, apologies, I posted before seeing PMario's post. I'm going into >>> slightly different directions, although we both seem to be leaning towards: >>> you need a button. >>> >>> On Saturday, May 1, 2021 at 11:01:36 AM UTC-3 Álvaro wrote: >>> >>>> I don't know if I understand you. >>>> >>>> When you click in a link you got the tiddler or the empty template of >>>> tiddler, that Mario has shown you. >>>> >>>> I think that an alternative for it to work with the links, you would >>>> have to use the LinkCatcherWidget >>>> <https://tiddlywiki.com/static/LinkCatcherWidget.html> but I don't >>>> have much idea how it works. Maybe it doesn't work. >>>> >>>> El sábado, 1 de mayo de 2021 a las 15:37:39 UTC+2, cj.v...@gmail.com >>>> escribió: >>>> >>>>> Alternatively, you could add a new button to the tiddler "ViewToolbar" >>>>> that, when clicked after save of your tiddler, finds all links in the >>>>> text >>>>> of the tiddler that are links to tiddlers that do not yet exist, and then >>>>> creates each one of those tiddlers with default values. Assuming every >>>>> single new tiddler you ever create gets the same defaults. >>>>> >>>>> If different tiddlers get different defaults, then you would want the >>>>> links to have something in the tiddler titles to say what kind of >>>>> tiddlers >>>>> they are. >>>>> >>>>> For example: >>>>> >>>>> - [[John Doe s]] to indicate student >>>>> - [[John Doe t]] to indicate teacher >>>>> - [[Physics 101 c]] to indicate class >>>>> - [[D232 cr]] to indicate class room >>>>> >>>>> So the button goes through each link in the tiddler, determines >>>>> whether or not the tiddler related to the link exists. If the link is to >>>>> a >>>>> tiddler that does not exist, then get the last part of the tiddler title >>>>> to >>>>> determine tiddler "type", and create that tiddler with all of the default >>>>> values for that type. >>>>> >>>>> On Saturday, May 1, 2021 at 10:28:23 AM UTC-3 Charlie Veniot wrote: >>>>> >>>>>> G'day Jax, >>>>>> >>>>>> Transclusion and transclusion templates might be your friend here. >>>>>> >>>>>> Instead of typing into a tiddler links [[like this]], type them in {{ >>>>>> like this || *setAsType* }}. >>>>>> >>>>>> Setup *setAsType* so that if the transcluded tiddler does not exist, >>>>>> the result: place a button to create that tiddler (*Tip*: Set class >>>>>> to tc-btn-invisible tc-tiddlylink to have a button look like an internal >>>>>> link) with whatever default values, and then open that tiddler. If the >>>>>> tiddler does exist, then never mind the button and instead show a simple >>>>>> link to the tiddler. >>>>>> >>>>>> You could then have all sorts of tiddler templates to create tiddlers >>>>>> with default content. setAsStudent, setAsTeacher, setAsClass, >>>>>> setAsClassRoom ... >>>>>> >>>>>> If access to backlinks is an issue, then consider Just a neat use of >>>>>> Relinks "References" feature >>>>>> <https://groups.google.com/g/tiddlywiki/c/gZP2x2eoYQo/m/yd0wsNx5AQAJ> as >>>>>> an alternative way to get backlinks. >>>>>> >>>>>> >>>>>> On Thursday, April 29, 2021 at 2:12:46 PM UTC-3 isd196...@gmail.com >>>>>> wrote: >>>>>> >>>>>>> Hello. >>>>>>> >>>>>>> Thanks to posts in this group I have been able to create new buttons >>>>>>> that are used to create various custom Tiddlers. These are simple and >>>>>>> work >>>>>>> very well, however I would like to take this one stage further. >>>>>>> >>>>>>> The vast majority of my new Tiddlers are created via standard square >>>>>>> bracket links in text that are added on the fly and then clicked to >>>>>>> create >>>>>>> the new Tiddler. >>>>>>> >>>>>>> What I want is for those new Tiddlers that are created by clicking >>>>>>> on links in text, to be created with some text already in them. I'm not >>>>>>> worried about adding tags at this stage. >>>>>>> >>>>>>> Is there a system default Tiddler (or some other mechanism) that I >>>>>>> can edit or create so that ALL Tiddlers created when clicking on a text >>>>>>> link will have my default text in them? >>>>>>> >>>>>>> Many thanks for your time >>>>>>> >>>>>>> Jax >>>>>>> >>>>>>> >>>>>>> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "TiddlyWiki" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/tiddlywiki/tf-7T3zxEo0/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> tiddlywiki+...@googlegroups.com. >> > To view this discussion on the web visit >> https://groups.google.com/d/msgid/tiddlywiki/f9b156a6-31a3-4f5f-be30-45e89a2ae890n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/tiddlywiki/f9b156a6-31a3-4f5f-be30-45e89a2ae890n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/dabbc4d4-dc8a-4a27-a4ba-9eaf348b3041n%40googlegroups.com.