|bag|The name of the bag from which a tiddler came|
Which doesn’t tell me a lot about what bags are for, and the TiddlyWebAdaptor tiddler doesn’t exist. Is anyone able to shed any light on these mysteries?
I’ve pasted the material about bags and recipes below.
The bags and recipes model is a reference architecture for how tiddlers can be shared between multiple wikis. It was first introduced by TiddlyWeb in 2008.
The principles of bags and recipes can be simply stated:
Tiddlers are stored in named “bags”
Bags have access controls that determines which users can read or write to them
Recipes are named lists of bags, ordered from lowest priority to highest
The tiddlers within a recipe are accumulated in turn from each bag in the recipe in order of increasing priority. Thus, if there are multiple tiddlers with the same title in different bags then the one from the highest priority bag will be used as the recipe tiddler
Wikis are composed by splicing the tiddlers from the corresponding recipe into the standard TW5 HTML template
A very simple example of the recipe/bag model might be for a single user who maintains the following bags:
I found using “recipe” as an example bag, when explaining what bags and recipes are, makes the explanation difficult to follow. Perhaps this could be renamed ‘cookbook’ or something to avoid overloading the word “recipe” in the explanation?
Given the likelihood in this example that multiple students may name their work the same, wouldn’t this result in the teacher wiki missing data from some students?
There is a question that I would like to ask. When I start a wiki using TIDGI, which does not contain any includeWikis, I can see that there is a bag field in the tiddler information with a value of default. but when I import an external wiki using includeWikis, regardless of whether it is a pre-existing tiddler or an includeWikis tiddler, there is no bag field anymore, and the new tiddler also has no bag field. Why is this?
You have to ask deepwiki, in TidGi there is an IPCSyncAdaptor, similar to tw core plugin’s tiddlyweb-adaptor, I try to keep them behave the same. But maybe it may differ when handling bags, because bags was useless until MWS release, I haven’t put many attention on it.