On Sunday, June 7, 2015 at 11:03:09 AM UTC-7, Mark S. wrote:
>
> The hope was to avoid having the user remember to create the field every 
> time.
> I'm not sure how this is easier than simply modifying one template and ... 
> ta-dah! ... you're done.
> I guess the solution for TW5 is to roll your own new tiddler button, and 
> then take away all the other "new tiddler" options.
>

If you want *all* tiddler's to have the same extra field(s), then using a 
"template tiddler" is the right way.

However, you don't have to "take away all the other new tiddler options"... 
just edit
   $:/core/ui/Buttons/new-tiddler
and add
   param="NameOfTemplateTiddler"
like this:
   <$button message="tm-new-tiddler" param="NameOfTemplateTiddler" 
tooltip=...

>From then on, *all* instances of the core new tiddler button will use the 
template when creating new tiddlers.  Q.E.D.

Note: modifying shadow tiddlers is discouraged because it will block 
automatic core upgrades to the modified shadows.  However, in this 
particular use case, it is the right thing to do.  Just be aware of this 
when/if you upgrade your document.

-e



-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/3d293cbe-73e1-4349-82a0-7bd13ea82e75%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to