How to dynamically show/hide and configure other modules from my module?
micsa last edited by
How can I dynamically (via API calls)
- Show/hide other modules (pre-configured in config.js)
- Change their configuration and apply configuration dynamically?
I would like to dynamically show the standard weather forecast module, and configure the module to show the forecast of a specific location which name or ID I would pass dynamically.
Sounds like you want the configuration from a json instead of the config.js – because then you can change the content.
Or json first and config.js as fallback (and default after that as the last fallback).
So the weather module would have to read it’s config from that json and you can create a module that writes to this json something like weather_source: “location”, and triggers the weather module to reload.
EDIT: I found this module while looking for help with something similar: