Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • hakan 24 posts 118 karma points
    Jul 09, 2019 @ 08:44
    hakan
    0

    where Dasboard.config file

    I want to update welcome page or dashboard tabs. but I cant find Dasboard.config.

  • Alex Skrypnyk 6175 posts 24186 karma points MVP 8x admin c-trib
    Jul 09, 2019 @ 10:14
    Alex Skrypnyk
    100

    hi Hakan

    Dashboards functionality changed a bit, so you need to configure it in json or c#, have a look at docs - https://our.umbraco.com/documentation/Extending/Dashboards

    Registering with package.manifest Add a file named 'package.manifest' to the app_plugins folder, containing the following json configuration pointing to your dashboard view:

    {
        "dashboards":  [
            {
                "alias": "myCustomDashboard",
                "view":  "/App_Plugins/myCustom/dashboard.html",
                "sections":  [ "content", "settings" ],
                "weight": -10
            }
        ]
    }
    

    Registering with C# Type By creating a C# class that implements IDashboard from Umbraco.Core.Dashboards then this will automatically be discovered by Umbraco at application startup time.

    using System;
    using Umbraco.Core.Composing;
    using Umbraco.Core.Dashboards;
    
        namespace My.Website
        {
            [Weight(-10)]
            public class MyDashboard : IDashboard
            {
                public string Alias => "myCustomDashboard";
    
                public string[] Sections => new[] { "content", "settings" };
    
                public string View => "/App_Plugins/myCustom/dashboard.html";
    
                public IAccessRule[] AccessRules => Array.Empty<IAccessRule>();
            }
        }
    

    Thanks,

    Alex

  • hakan 24 posts 118 karma points
    Jul 09, 2019 @ 11:02
    hakan
    0

    thanks Alex.

  • hakan 24 posts 118 karma points
    Jul 09, 2019 @ 11:12
    hakan
    0

    Alex, I research umbraco api with oauth token very long time but I couldnt solve this problem. I'm using umbraco api with no token for now. I want to use umbraco api with oauth token plesase can you give me some information documantation. thank you very much about your helps.

Please Sign in or register to post replies

Write your reply to:

Draft