Can core support multiple wikis

104 views
Skip to first unread message

Arlen Beiler

unread,
Nov 4, 2017, 5:59:49 PM11/4/17
to tiddlywikidev
Hi, Jeremy and core devs,

I have noticed that different parts of the wiki have wiki passed in as an option, and I'm wondering whether it would be possible to load multiple wikis and multiple data folders onto one $tw variable. I know it is not currently possible, but is it close or is it a long way from close? It seems close, but I don't know for sure. 

It would save memory for TiddlyWiki instances in TiddlyServer, it would drastically improve load times, and would also allow tighter integration between wikis. If we would do this, given the current configuration, it would require sharing plugins, correct? Or is everything that involves plugins centered around Wiki? In other words, is Wiki currently the instance of the data folder or is $tw?

This would also bring us a step closer to providing a robust multi-user and multi-wiki solution within TiddlyWiki or as a tightly coupled plugin. 

Thanks,
Arlen

Jed Carty

unread,
Nov 7, 2017, 4:42:09 AM11/7/17
to TiddlyWikiDev
With the multi-user wiki i am making it is simple to have the server give each connected browser a different wiki by controlling which tiddlers are served to it.

Jeremy Ruston

unread,
Nov 10, 2017, 5:29:04 AM11/10/17
to tiddly...@googlegroups.com
Hi Arlen

I have noticed that different parts of the wiki have wiki passed in as an option, and I'm wondering whether it would be possible to load multiple wikis and multiple data folders onto one $tw variable. I know it is not currently possible, but is it close or is it a long way from close? It seems close, but I don't know for sure. 

It is possible to have multiple independent $tw.Wiki objects, but the capability isn’t much used in the core. Besides the global $tw.wiki instance created by the boot kernel, the test framework and the code for the “fetch” command both create $tw.wiki instances.

My intention was along the lines you’ve been exploring with TiddlyServer: to be able to run multiple guest wikis, each served on a different URL. There’s an old ticket with some discussion:


It would save memory for TiddlyWiki instances in TiddlyServer, it would drastically improve load times, and would also allow tighter integration between wikis. If we would do this, given the current configuration, it would require sharing plugins, correct? Or is everything that involves plugins centered around Wiki? In other words, is Wiki currently the instance of the data folder or is $tw?

$tw.wiki is loaded from the main wiki folder. The guest wikis could be entirely separate, but I think there may be some refactoring of the boot kernel needed to be able to reuse the tiddler loading code.

This would also bring us a step closer to providing a robust multi-user and multi-wiki solution within TiddlyWiki or as a tightly coupled plugin. 

Indeed, it’s one of a number of refinements we need to make to the client-server configuration; one of the others is the ability to serve static files, which of course you are also exploring with TiddlyServer.

Best wishes

Jeremy.



Thanks,
Arlen

--
You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywikide...@googlegroups.com.
To post to this group, send email to tiddly...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywikidev.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/CAJ1vdSQX-aQpW44qjOOEk-zmumheaKRVyG4fjweoDOPkh_%3DP5A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages