Custom Dashboard - Restrict to a single environment (Umbraco Cloud)
I am trying to make a custom Dashboard that allows my users to quickly add content or edit recently published items.
I am however using Umbraco Cloud and as such gathering content using ID isnt ideal. All my users only have access to a single environment (staging) to add content (it then goes through a workflow for validation) so using ID would is fine.
I do however want to be able to disable that custom dashboard on any environment but staging as it would not work since the IDs differ from one environment to another.
Is there any way to identify the current work space environment and limit a dashboard to a specific one? I know I can restrict access by user groups.
The configuration for the dashboard placement exists in
/config/dashboard.config
so I'm wondering if you could concoct a config transform to remove the configuration from that file on the production environment, resulting in no dashboard.
Custom Dashboard - Restrict to a single environment (Umbraco Cloud)
I am trying to make a custom Dashboard that allows my users to quickly add content or edit recently published items.
I am however using Umbraco Cloud and as such gathering content using ID isnt ideal. All my users only have access to a single environment (staging) to add content (it then goes through a workflow for validation) so using ID would is fine.
I do however want to be able to disable that custom dashboard on any environment but staging as it would not work since the IDs differ from one environment to another.
Is there any way to identify the current work space environment and limit a dashboard to a specific one? I know I can restrict access by user groups.
Any help would be appreciated.
Hi Gregory
The configuration for the dashboard placement exists in
/config/dashboard.config
so I'm wondering if you could concoct a config transform to remove the configuration from that file on the production environment, resulting in no dashboard.
Have a look at the documentation here: https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Config-Transforms/
at the bottom there is a suggestion for creating a dashboard config transform for an AcmeEnvironmentColor Dashboard:
~/config/AcmeEnvironmentColor.Dashboard.development.xdt.config ~/config/AcmeEnvironmentColor.Dashboard.staging.xdt.config ~/config/AcmeEnvironmentColor.Dashboard.live.xdt.config
Thanks for that. Looks like I could work something here. :)
Great stuff!
is working on a reply...