Read the statement by Michael Teeuw here.
Config modules from external file (JSON)
-
@telmini so the returncode is right but its not fatal in mm view.
-
It could probably be that the XmlHttpRequest is async and the page is already loaded when the request has finished executing.
-
Hi, I’m trying something similar. Have you managed to solve your issue using this fuction loadJSON? If not, did you find any solution to update config.js “dinamicaly”?
-
@tatianobusatto others have written js/python code that takes their settings ( file, database, web service) and applied to a model config.js. (all their modules with fake strings for keys, etc)
and call that js/python just before launching mmin installers/mm.sh
-
@sdetweil thanks for the tip. Unfortunately, I couldn’t find a good js/python script example for that. For a while, I ended up creating a simple batch script to append multiple json config files for each module in between the config header and footer. In case you remember a place were I can find a thread for that discussion, please let me know.