Hi Mark

1. Thank you for your willingness to check this out!

2. The offtopic button is totally unnecessary, part of trying to do things
a different way. I can just delete it.

3. It still isn't working the way I envisioned it: to make my usecase
crystal clear: I want to tag a tiddler with whatever tag. Then from the tag
pill dropdown click the link to what would be the title of the tag, to
create the tiddler whose title is the name of the tag. Then I want to edit
the tiddler and find the ontopic field already there with a yes in it, and
either type no or leave it yes. But when I choose tiddler 2017-11-5-8:44:4
and click the tag 'sample taggy' and click the link to sample taggy at the
top of the dropdown, the resulting tiddler sample taggy opens, but when I
edit it, the ontopic field is not there.

My idea is that each file will be to take notes on books on a specific
topic, say books on geography. Notes that are on geography will be on topic
notes, and will show up in one index. Random helpful notes on other topics
are off topic and will show up in a different index. The on topic notes
will get built into a course packet of sorts, and off topic notes
(ontopic=no) can get transferred to more relevant course packets if needed.

Blessings,

David Gifford
Mexico team leader, Mexico City

*Resonate Global Mission*
*Engaging People. Embracing Christ.*
A Ministry of the Christian Reformed Church
resonateglobalmission.org


On Sun, Nov 5, 2017 at 8:19 PM, 'Mark S.' via TiddlyWiki <
[email protected]> wrote:

> Hi Dave,
>
> You were close. What it is is there needs to be a bit of code that tests
> for the existence of 'additionalFields' and makes sure that the variable
> exists before inserting your new field. Without that step it will throw an
> error under various conditions. Still only 4 lines of code. So far.
>
> I wrapped the code in comments starting with "// BEGIN INSERTED SPECIAL
> FIELDS CODE" so you should be able to find them easily.
>
> "So far" because you may want more. I tested cloning, here now and your
> existing custom buttons. And it works everywhere. BUT, the thing you might
> not like is now is that the offtopic tag button identifies itself as
> 'ontopic'. To get around that would require wrapping your code with a
> couple more lines of code and not overwrite if it already exists. But I was
> thinking that with this new default you might not need the two tag buttons
> and could use them to make other custom mods that you don't want universal
> (assuming there are some).
>
> Have fun,
> Mark
>
> On Sunday, November 5, 2017 at 4:43:49 PM UTC-8, Dave Gifford -
> http://www.giffmex.org/ wrote:
>>
>> Hi Mark
>>
>> Thanks for your help.
>>
>> The attached file has only one way that I tried to paste it. I also tried
>> pasting it just as you had it, both inside and outside the curly bracket of
>> the preceding code, and with and without the line " additionalFields =
>> {} ; "
>>
>> Dave
>>
>> On Sunday, November 5, 2017 at 7:13:19 PM UTC-5, Mark S. wrote:
>>>
>>> Hi Dave,
>>>
>>> Can you post what your tiddler ($:/core/modules/widgets/navigator.js)
>>> looks like after your patch? What version of TW are you running?
>>>
>>> Also, the changes don't take effect until you reload.
>>>
>>> My instructions may have seen a little confusing, because Google kept
>>> wanting to do weird things with the formatting.
>>>
>>> Mark
>>>
>>> On Sunday, November 5, 2017 at 3:50:20 PM UTC-8, Dave Gifford -
>>> http://www.giffmex.org/ wrote:
>>>>
>>>> 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 a topic in the
> Google Groups "TiddlyWiki" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/tiddlywiki/meMFzwjLxXw/unsubscribe.
> To unsubscribe from this group and all its topics, 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/9c5d493c-92c9-4b5f-b479-ecdf2204804f%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/9c5d493c-92c9-4b5f-b479-ecdf2204804f%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CANE%3DBF%2Bp06gi4GoEYupSpw180iOZ0d39En6jYS0DL8H6g_F3Xg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to