Much as i love this Customizer plugin, i'm facing the prospect of making a shadow tiddler modification that "will override the default version from the plugin
$:/plugins/giffmex/BookToolsSidebarAddon" -so says the standard warning message- and before i venture off on that branch, i'd appreciate anything by way of sanity check and/or survival kit that this group might have to offer.
Thing is: i'm using the "Glossary" feature in a way that may not be exactly as intended, but for my purpose, i need to add a "URL" field (for link to canonical source of definition) on the entry form that pops when you click the "+" button. I've created a "GlossaryItemTemplate" tiddler tagged by the ViewTemplate such that it will display the extra fields in body of tiddlers tagged with "glossary", but only if the field is populated in the first place on creation.
SO: I guess i need to modify the "$:/.giffmex/BookTools/buttons/newglossaryitem" tiddler to add a URL attribute on the button action (as in bold on the end 2nd line below):
<$button class="tc-btn-invisible">
<$action-sendmessage $message="tm-new-tiddler" title="Term" tags="glossary" definition="" URL="" />
{{$:/core/images/new-button}}
</$button>
... But there's two things i'd like to know before i go and do that -essentially:
- Am i correct in my guess about the code i would need to change? and
- Is there anything like a best practice about making such changes to a plugin somebody else is maintaining, such that one's modifications can survive any future upgrade to the plugin?
Yours, Walt