Open twMat opened 3 years ago
Any ideas on how it could be done?
I'm not qualified to answer on the deeper aspects of that question, so FWIW here is just some naive brainstorming:
First off, in #80 I proposed "settings from within the wiki" where you followed up with an idea that that should be in the form of a TH specific plugin. IF there is a conveniently accessible UI from within the wiki (e.g like the mentioned TiddlySpace type dropdown that is ubiquitously and directly accessible in the top bar) then that could simply show the $:/UploadURL field and it would probably be one of the first places a user thinks "hm, it doesn't save - what's wrong?". Not a proper solution, but still.
Another semi-solution, which I guess could be part of such a plugin or independent, could perhaps affect the importing mechanism and block specifically the importing of $:/UploadURL
Since the whole "TiddlySpot saver" tab in the Ctrlpanel has to be revised regardless (it's not TS anymore) maybe that is an opportunity to plant some "mechanism" that if the wiki is dropped onto, specifically, a TH, then the mechanism executes and does some magic?
Or, could uploads to TH be enabled from native TW? I.e in local wiki, if one fills in the relevant TH URL in the $:/UploadURL field and click save, it'd upload+overwrite? Isn't that how it worked with TS?
The other native savers (Gihub, Gitlab, etc) also have special Server API URL's so maybe this is a problem beyond TH and @Jermolene has opinions/ideas?
BTW, I guess this is closely related to #79
A problem with dropping a local TW onto a TH wiki is that the $:/UploadURL is replaced which then prevents saving. I expect this to be a pitfall everyone falls into.
If possible, block that particular tiddlers value from being imported.
Some of the situations when this happens would be resolved if one could instead make copies of TH wikis so that one can have a few "standard setup wikis". I.e I currently have to upload local wikis just to get my basic custom settings and this causes the issue mentioned.