load additional config file for custom modules
Hi,
I've made some custom TS modules and edited the Desktop.json.js libraries and modules sections to load them.
Works perfectly!
Unfortunately, sometimes I do stuff in the Rest Manager that overwrites the Desktop.json.js file (and the other config files I suppose).
Is there a way I can put the configuration for loading my custom modules in a separate file or something so I don't have to keep "fixing" my config?
Looking at the samples (https://docs.geocortex.com/essentials/gvh/2.10/SamplesViewer/#Hello%20World?Configuration.json.js) they seem to suggest so, as they all have separate configuration.json.js files, but I can't figure out how to then tell the viewer to also load those.
0
-
The manager shouldn't remove custom sections (at least if you keep to the usual geocortex module layout, I don't know what would happen to arbitrary json code)
The only time this can go wrong is if you have the site open in the manager, and at the same time are editing the config files manually. In that case, your manual edits will not be seen be the manager, and if you save from there, you will lose them.
So, if you need to make manual changes, make sure the site is not opened in the manager.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
1 kommentar