Closed benoitblanc closed 9 months ago
I'd proceed as follows:
tenantConfig.template.json
: you can either specify the template themesConfig
directly inline in the tenantConfig.template.json
, or point to a separate file, in which case this file is read and embedded into the tenantConfig.template.json
tenantConfig.json
: Same as above, you can specify the themesConfig
either inline or as a separate file, in which case the contents is embedded into the tenantConfig.json
.tenantConfig.template.json
with the tenantConfig.json
In this way there is no need for a separate templateThemesConfig.json
or similar, you can just specify the templated values via tenantConfig.template.json
. (Perhaps this actually already works?)
Hi @manisandro
Thanks for your advice. It did not work at the moment so I have force-pushed a commit which should handle this use-case
EDIT: it is still not compatible with Themes plugin in admin GUI
Thanks, I guess the block [1] is now redundant with this change?
Thanks, I guess the block [1] is now redundant with this change?
Yes ! I now read themesConfig
before to handle templates.
We still need to get themesConfig
from config, as it could be merged with a template.
Thanks!
Hi,
As
tenantConfig.json
can be templated, this PR proposes to do the same withthemesConfig.json
.It could allow admin to create a
templateThemesConfig.json
inINPUT_CONFIG_PATH
where all the common parameters (i.e defaultSearchProviders, backgroundLayers, ...) for each tenant could be written and specific parameters could be inthemesConfig.json
located in each tenant directory.For now, this option is not compatible with plugin
Themes
inqwc-admin-gui
. Any suggestion or contribution is welcomed, I am also thinking about it.Thanks