[MWS] Questions about Bags and Recipes

Working on the materials for my History Class (which is mainly working on a tiddlywiki) I have a question towards the new organization of TW in bags and recipies. (So I do not know, whether this is the right place to post these in this thread)
I have a number of subjects (Tiddlers) I would not include to the Course-TW but make it reachable from that point.

  • On the one hand, these are materials which would make the wiki too big (like for example the material I made in my art-history wiki on Expressionism).
  • On the other hand, this would be solutions to questions, the upcoming exam etc.
    Will there be a mechanism to load tiddlers or entire bags after loading the wiki?

MWS is beta, work in progress and not ready for prime time yet

Bags and recipes are “connected”.

A recipe is a configuration that allows us to configure the content of wikis.
A bag is representation of a datastore that combines tiddlers that belong together.

A more detailed description can be found at: Announcing the MultiWikiServer Plugin - #83 by pmario

So for a theoretical wiki of yours you could have the following configuration:

  • recipe: Art-history
    • bag: plugins
    • bag: general info about art

If tiddler titles are duplicated in different bags the lower bag will win. So it is the same mechanism as we
have with “shadow” tiddlers.

So the first recipe contains the general info. The next recipe contains the same bags are recipe 1 but it also contains the “too big” stuff, that would be needed for an upcoming exam.

  • recipe: Art-history on Expressionism
    • bag: plugins
    • bag: general info about art
    • bag: details about expressionism

As you can see. This mechanism allows you to reuse content in different wikis. So for example every user could use recipe 1 and add their own notes eg:

  • recipe: Art-history with user Notes
    • bag: plugins
    • bag: general info about art
    • bag: user notes

In this case the last bag “user notes” will be writeable by the owner only.


Missing features

  • We do not have a visual indication yet, in which bag the content is located
  • There is no easy way in the UI to move tiddlers from one bag to an other bag
  • The ACL (access control list) is not finished yet
    • That means access control is in flux
    • We did not even start to discuss it
  • The database structure is still in flux
  • … And probably more
1 Like

Everything pmario said is basically correct. It’s not production ready yet.

Now to answer your actual question. You can put the same bag in as many recipes as you want. But only the first bag (first position in the list in the admin UI) is actually writable. So you can make a separate recipe to edit the bag at each level, plus read the bags below that. For now you need to manually create all the recipes, but it’s fairly obvious that we’re going to have to make this bag+recipe cascade a little easier to manage.

The bag stack doesn’t use the client shadow tiddler feature, so you won’t see a plugin for lower bags. But it’s the same idea, where tiddlers with the same title cover over tiddlers below them in the list of bags.

1 Like

Hi @Arlen22
Thanks for your reply. Can you postload bags on demand?

I don’t think so but @Arlen22 may know better.

I’m not sure what you mean by postload. Currently you can load a tiddlywiki core plugin or an arbitrary data folder into a bag from the command line. If you need additional options I’m definitely looking for suggestions.