Skip to content

Menu entry

For the user to be able to open a module's UI, a menu entry needs to be registered to C1 Core. This is done by passing a menu entry description to registerModule or - when using C1 Module Proxy - by specifying moduleUiMenu in /etc/c1-module-proxy/main.conf. A menu entry description looks like this:

{
    "label": {
        "de-DE": "Mein Modul",
        "en-US": "My module"
    },
    "icon": "fontawesome/fa-heartbeat",
    "url": "https://my-module.sensaru.net"
}

label sets the localed menu entry. icon sets the icon before the label. When the user clicks on the menu entry url is opened in in iframe.

Warning

url must be a subdomain of sensaru.net. Otherwise authentication won't work correctly because of browser Cookie restritions.