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: https://github.com/Jermolene/TiddlyWiki5/issues/970 <https://github.com/Jermolene/TiddlyWiki5/issues/970> > 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 [email protected] > <mailto:[email protected]>. > To post to this group, send email to [email protected] > <mailto:[email protected]>. > Visit this group at https://groups.google.com/group/tiddlywikidev > <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 > > <https://groups.google.com/d/msgid/tiddlywikidev/CAJ1vdSQX-aQpW44qjOOEk-zmumheaKRVyG4fjweoDOPkh_%3DP5A%40mail.gmail.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <https://groups.google.com/d/optout>. -- 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 [email protected]. To post to this group, send email to [email protected]. 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/D193BE15-7A58-4736-8E2A-25F5BE1B4862%40gmail.com. For more options, visit https://groups.google.com/d/optout.
