[TW5] Is there a plugin FAQ? My new plugin is not loaded though is shown as "installed".

56 views
Skip to first unread message

Martian

unread,
Jun 28, 2018, 6:27:29 PM6/28/18
to TiddlyWiki
Hello!

I've just "made" my first plugin. I mean I just made 2 js tiddlers and 1 css tiddler and 1 tiddler for plugin itself and "packed" all that according to this page https://tiddlywiki.com/dev/#How%20to%20create%20plugins%20in%20the%20browser 
Well, now I can see 3 my tiddlers are "shadow" (searchable only in Shadow tab) and my plugin is enabled. BUT I do NOT see neither my "$:/plugins/user/pluginname/one.js" tiddlers not .css :(
So seems it is not loaded.

Then I found that tw https://tid.li/tw5/plugins.html and repeat all with help of "Control Panel / Tinka Plugin Management / Create New Plugin" tab. But result is the same - I see my plugin in Installed list, but in fact it is not seen in DevTools / Sources / Network list (while other plugins are there).

Seems I missed something. 
Is there a manual how to develop a plugin in right manner? 

Mark S.

unread,
Jun 28, 2018, 6:59:06 PM6/28/18
to TiddlyWiki
If you see them as shadows then it sounds like they're really there. What do you mean by:

BUT I do NOT see neither my "$:/plugins/user/pluginname/one.js" tiddlers not .css :(

The question is, can you USE the css and whatever you have in $...one.js ?

When they're part of the plugin, they won't show up in the regular search -- only as shadow tiddlers. But they will still do their jobs.

Good luck!
-- Mark

Martian

unread,
Jun 29, 2018, 6:29:34 AM6/29/18
to tiddl...@googlegroups.com
Well, I do not yet understand how to check "can you USE the css and whatever you have in $...one.js" . I supposed just to put some js lib and css to plugin tiddler and then it will do some stuff with each <code></code> block "classified" in certain way (like all these vue.js etc).

But I can not even see my plugin's jses in loaded Sources list 




 While I definitely see it installed in TW5. For example $:/plugins/mine/mine/alert.js contains just
alert("Hi there");
log
.console("Hi");

Shouldn't this create alert windows just after wiki reloaded? I do not see any :/
Reply all
Reply to author
Forward
0 new messages