Hi,
How can I remove Welcome to Umbraco Dashboarrd, I can’t seem to find any instructions on how to do it, I prefer to remove it in the Program.cs if I can.
Hi,
How can I remove Welcome to Umbraco Dashboarrd, I can’t seem to find any instructions on how to do it, I prefer to remove it in the Program.cs if I can.
Please try this:
First, you need to tell Umbraco to load a custom script. Create a new directory in your project root, for example at App_Plugins/DashboardTweaks/. Inside this folder, create an umbraco-package.json file.
{
“name”: “DashboardTweaks”,
“version”: “1.0.0”,
“extensions”: [
{
“type”: “backofficeEntryPoint”,
“alias”: “DashboardTweaks.EntryPoint”,
“name”: “Dashboard Tweaks Entry Point”,
“js”: “/App_Plugins/DashboardTweaks/dashboards-setup.js”
}
]
}
In that exact same folder (App_Plugins/DashboardTweaks/), create a JavaScript file named dashboards-setup.js.
This script taps into the Extension Registry to exclude the specific dashboard. The internal system alias for the Welcome dashboard in the Content section is Umb.Dashboard.UmbracoNews:
export const onInit = (host, extensionRegistry) => {
// Completely removes the “Welcome / Getting Started” dashboard from the UI
extensionRegistry.exclude(‘Umb.Dashboard.UmbracoNews’);
};
Hope it helps!
Thank you that work as expeced.