How to overide plugin's tiddler from another plugin

36 views
Skip to first unread message

ILYA

unread,
Nov 24, 2019, 12:45:00 AM11/24/19
to tiddl...@googlegroups.com
I am working on a tiddlywiki edition which would use https://github.com/sycom/TiddlyWiki-Plugins/blob/master/plugins/sycom/g-analytics/readme.md plugin.

I wanted to overwrite $:/plugins/sycom/g-analytics/settings/disclaimer_title tiddler to specify different capture field. The capture field is used to specify tiddler which would be shown to the visitor of the page.

I tried to create a tiddler with the same title in different plugin (custom theme). However since I don't know how to control the order of plugins. It so happen that original g-analytics provided tiddler takes priority.

Are the any other ways to do it without forking plugin or patching it locally? As I mentioned earlier it is an edition so manually editing wiki is not an option.

I also tried to use combination of tiddlywiki.files file with files directory (in my themes plugin), but didn't have any luck with it.

Best regards,
iilyak
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.

Matthew Lauber

unread,
Nov 29, 2019, 3:17:38 PM11/29/19
to TiddlyWiki
There is a field called "plugin-priority" that can be used to specify plugin ordering.  However, if the upstream plugin doesn't have this defined, you may run into issues.  See: https://tiddlywiki.com/#TiddlerFields and https://github.com/Jermolene/TiddlyWiki5/commit/1dc764764055243acd07d0c4f480e6e912be6870

Matt
Reply all
Reply to author
Forward
0 new messages