Hi Mark

I like the idea of your solution, but I am wondering if there is something 
missing or if I am pasting it wrong. I tried several different ways to 
paste it and save and reopen, with no results whatsoever.

Dave

On Friday, November 3, 2017 at 1:15:21 PM UTC-4, Mark S. wrote:
>
> It would be really nice if tiddlywiki.com gave even a single example of 
> how to use paramObject.
>
> With that digression out of the way, you could add this code to 
> $:/core/modules/widgets/navigator.js
>
>
> Go down to 
>
>
> NavigatorWidget.prototype.handleNewTiddlerEvent
>
> Go further down below where it says:
>
> if(additionalFields && additionalFields.title) {
>               title = additionalFields.title;
>       }
>
> Below these lines, insert:
>
> if(typeof additionalFields == "undefined") {
>    additionalFields = {} ;
> }
>
> additionalFields.myfield = "123" ;
>
>
> You can add whatever fields you want here, e.g.
>
> additionalFields.gifford = "true" ;
>
> Save and reload. This should change everywhere that tiddlers are made, 
> including new here, clone, and journal.
>
> ABSOLUTELY make a back up before trying this, because this is a very 
> ticklish part of the core. 
>
>
> Sorry about the bad formatting here -- Google seems to be at war with my 
> browser lately.
>
> Good luck,
> Mark
>
>
>
> On Friday, November 3, 2017 at 7:28:43 AM UTC-7, Dave Gifford - 
> http://www.giffmex.org/ wrote:
>>
>> Hi all
>>
>> One thing I have wanted at times is for all new tiddlers, regardless of 
>> the mode of creating them, to have a certain field. So whether I click on 
>> an empty link or create from a button, the tiddler will already have a 
>> custom field in it. Is there a way to do that? Up till now I have had to 
>> always take the extra step of creating new tiddlers by a custom new tiddler 
>> button. 
>>
>
>

-- 
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 https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/5e3e5690-44f8-4606-812b-1a34b66088ae%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to