I’ve created a custom dashboard, but I only want to show it is a specific setting in appsettings.json is present.
Can I somehow read / inject appsettings.json into my customdashboard.controller.js ?
I’ve created a custom dashboard, but I only want to show it is a specific setting in appsettings.json is present.
Can I somehow read / inject appsettings.json into my customdashboard.controller.js ?
You can use the notification ServerVariablesParser.Parsing to add variables to the browser. They will be available through JavaScript in Umbraco.Sys.ServerVariables.
See this answer for a code example:
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.