using Umbraco.Core;
using Umbraco.Core.Dashboards;
namespace MySampleApp
{
public class MyDashboard : IDashboard
{
public string[] Sections => new string[] { "mySection" };
public IAccessRule[] AccessRules
{
get
{
var rules = new IAccessRule[]
{
new AccessRule {Type = AccessRuleType.Grant, Value = Constants.Security.AdminGroupAlias}
};
return rules;
}
}
public string Alias => "MyDashoard";
public string View => "~/App_Plugins/MySampleCode/MyDashboard.html";
}
}
Custom section Umbraco v8
How do add html view to this.
Hi Kasper,
you can add a Dashboard to your custom section, to display the html.
in a package.manifest file (in a app_Plugins folder) this looks like :
you can also add a dashboard in code for example:
Just checked and the Dashboard Documentation for v8 is complete - so you can see more details here https://our.umbraco.com/documentation/Extending/Dashboards/
Nice! Thank you Kevin Jump
For me the string for the view had to be like this:
Otherwise I'd get an 404...
is working on a reply...