plugins folder : TW + Node.JS

164 views
Skip to first unread message

Mohammad Rahmani

unread,
Sep 9, 2019, 4:37:43 AM9/9/19
to tiddl...@googlegroups.com
On Node.JS Tiddlywiki I have a wiki working fine!

The folder structure is like this:
mywiki
-- tiddlers
-- plugins

In the plugins folder I have plugins like below

-- plugins
----relink
----kookma
------slider
----chooser

relink, slider, and chooser are my plugins which have a correct TW structure and tested separately!

The plugins are directly under plugins folder all work fine. but those are in subfolder are not loaded and warning message is shown when I start the wiki as below

tiddlywiki mywiki --listen

In brief HOW plugins stored in subfolders under plugins folder can be loaded into mywiki?

Best wishes
Mohammad

Mohammad

unread,
Sep 9, 2019, 4:42:31 AM9/9/19
to TiddlyWiki
resend for who read emails

In brief HOW plugins stored in subfolders under plugins folder can be loaded into mywiki?

- mywiki
-- plugins
-- -- subfolder1
-- -- -- plugin1
-- -- -- plugin2
-- -- pluginx
-- -- pluginy

The problem is with plugin1 and plugin2.

--Mohammad

Jeremy Ruston

unread,
Sep 9, 2019, 9:16:03 AM9/9/19
to tiddl...@googlegroups.com
Hi Mohammad

Plugin folders must be immediate children of the wiki “plugins” folder. In other words, you’ll have to move the “slider” plugin folder to be a sibling of “relink”, “kookma” and “chooser”.

Best wishes

Jeremy.

-- 
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/d382deca-9c14-4c10-a5be-25c801ec9f1b%40googlegroups.com.

Mohammad Rahmani

unread,
Sep 9, 2019, 2:40:45 PM9/9/19
to tiddl...@googlegroups.com
Hi Jeremy!
 Thanks for clarification! It seems there is an exception!
If plugins are installed in Tiddlywiki/plugins (the root for tw under node.js) we can have 

-plugins
---tiddlywiki
--- -- plugin1
--- -- plugin2
---kookma
--- -- slider

Best wishes
Mohammad


Jeremy Ruston

unread,
Sep 10, 2019, 9:44:02 AM9/10/19
to tiddl...@googlegroups.com
Hi Mohammad

 Thanks for clarification! It seems there is an exception!

Right, the “plugins” folder in the root of the main repo is not the same as a “plugins” folder within a wiki folder.

Best wishes

Jeremy.

Mohammad Rahmani

unread,
Sep 10, 2019, 1:34:03 PM9/10/19
to tiddl...@googlegroups.com
Many thanks Jeremy!
I added this explanation to TW-Scripts!


Best wishes
Mohammad


PMario

unread,
Sep 11, 2019, 3:41:14 AM9/11/19
to tiddl...@googlegroups.com
Hi,

On Monday, September 9, 2019 at 8:40:45 PM UTC+2, Mohammad wrote:
Hi Jeremy!
 Thanks for clarification! It seems there is an exception!
If plugins are installed in Tiddlywiki/plugins (the root for tw under node.js) we can have 

TW has 4 environment variables, that are read at server startup. see: https://tiddlywiki.com/#Environment%20Variables%20on%20Node.js

So you can have your 3rd party plugins where you want. eg:

-tw-plugins
---wikilabs
--- -- plugin1
---kookma
--- -- slider

Set the environment to: tw-plugins and you can include plugins in tiddlywiki.info in the same way as you would include tiddlywiki plugins. Environment variables can contain several different 3rd-party directories.

eg:
    "plugins": [
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem",
        "kookma/slider"
    ],

Be aware, that environment PATH settings are different in unix and windows systems!!!!!

have fun!
mario

Mohammad Rahmani

unread,
Sep 11, 2019, 3:45:13 AM9/11/19
to tiddl...@googlegroups.com
That's really great!
Thanks Mario!

Added to TW-Scripts.




Best wishes
Mohammad


--
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 tiddlywiki+...@googlegroups.com.

PMario

unread,
Sep 11, 2019, 3:45:30 AM9/11/19
to TiddlyWiki

Using the environment variables is very convenient, since it is a global setting. So every --server command can find your 3rd party stuff.

It also allows us to include plugins into tiddlywiki.info using the "defacto standard" for plugins, which is

$:/plugins/<author>/<plugin-name>

-m

Mohammad

unread,
Sep 11, 2019, 10:01:37 AM9/11/19
to TiddlyWiki
well noted!

Thank you
Reply all
Reply to author
Forward
0 new messages