Arlen22 / TiddlyServer

v2 - A static file server that can also save files and mount TiddlyWiki folders
https://arlen22.github.io/tiddlyserver/
MIT License
256 stars 36 forks source link

Issues with creating new folder wikis and plugins in new wikis #94

Open TechLifeWeb opened 4 years ago

TechLifeWeb commented 4 years ago

Hi have a new install of 2.2 and I have some issues around creating new wikis and getting plugins from the library in my new install.

This is how my old (2.1.3) install looked. It allows creation of a folder or uploading files

tiddlyserver_2-1-3_new_file_screen

I created a new install in a separate folder so should be all new code and I see this with no options for new: tiddlyserve_2-2_new_file_screen

Additionally If I just created a folder by hand and copy in tiddlywiki.info to create a wiki, it has no plugins. Here is the get plugins screen: tiddlyserve_2-2_Get_plugins_screen

Arlen22 commented 4 years ago

Add localAddressPermissions to the bindInfo section of your settings.json as shown

{
  "bindInfo": {
    "localAddressPermissions": {
      "*": {
        "mkdir": true,
        "putsaver": true,
        "registerNotice": true,
        "upload": true,
        "websockets": true,
        "writeErrors": false,
        "loginlink": true,
        "transfer": false,
        "datafolder": true
      }
    }
  }
}
TechLifeWeb commented 4 years ago

Thanks. That solved being able to create new wikis. However, those new wikis still have now plugin library.

Arlen22 commented 4 years ago

That's probably something related to data folders. I think you're supposed to add them to tiddlywiki.info

TechLifeWeb commented 4 years ago

I got it to work by dragging this tiddler ($:/config/OfficialPluginLibrary) in from TiddlyWiki.com https://tiddlywiki.com/#%24%3A%2Fconfig%2FOfficialPluginLibrary

Arlen22 commented 4 years ago

Normally you specify the plugins by name in the tiddlywiki.info file so they get upgraded automatically when you upgrade to a new version of TiddlyWiki. If you use the plugin library you will end up running into compatibility issues between core and the official plugins. 

{
    "description": "Basic client-server edition",
    "plugins": [
        "tiddlywiki/tiddlyweb",
        "tiddlywiki/filesystem",
        "tiddlywiki/highlight"
    ],
    "themes": [
        "tiddlywiki/vanilla",
        "tiddlywiki/snowwhite"
    ]
}