On Jan 20, 12:00 pm, ccahua <[email protected]> wrote:
> On Jan 20, 9:49 am, FND <[email protected]> wrote:

>
> Do I add this custom line (server.workspace": "bags/myBag") in
> TiddlyWebConfig/config.defaultCustomFields
> for every new bag? or do I add new set of config.defaultCustomFields
> witht the custom line?
>
> Basically, what do I change in order to save in more than 1 bag, ie
> common, bag1, bag2, bag3?
...
>
> Now i just have to find out how to set the TiddlyWebConfig/
> config.defaultCustomFields so I can save in more than one bag

A bit more checking...

I tested again with another bag and I think the server needs a restart
in order to save after the TiddlyWebConfig save.

For some reason twanager is picking up the old server.workspace custom
config in revision 1. Only after a restart of the server, does the
custom config in TiddlyWebConfig/revision 2 work and tiddlers are
saved to the new bag.

This was apparent when I tried to save to a new journal tiddler and
found that the tiddler saved to bag2/tiddlers/20 January 2009
was instead saved to bag1/tiddlers/20 January 2009 even though
server.workspace": "bags/bag2"

After I restarted the server, twanager correctly PUTS to the new bag.

For multiple workspaces...

Ha! I thought I could get away with just adding more workspaces to
TiddlyWebConfig:

config.defaultCustomFields = {
        "server.type": "tiddlyweb",
        "server.host": store.getTiddler("TiddlyWebConfig").fields
["server.host"],
        "server.workspace": "bags/bag1"
    "server.workspace": "bags/bag2"
};

Got a good save to bag1, but then I got a PluginManager error when I
tried to open bag2. Oh well.
I guess I don't understand how TiddlyWeb separates the custom
configs. :-\

Perhaps there is an issue if there are identical named tiddlers in
different bags but the TiddlyWebConfig in the System bag is the source
of all recipes?

Best,
tony
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/TiddlyWiki?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to