Creating Custom Dashboard for Custom Section Without Manually Editing Dashboard.config
I'm looking to create a package that installs its own custom section, in which it has its own custom dashboard content (aka, the root node of the custom section, not tree items.)
Creating Custom Dashboard for Custom Section Without Manually Editing Dashboard.config
I'm looking to create a package that installs its own custom section, in which it has its own custom dashboard content (aka, the root node of the custom section, not tree items.)
I know how to make a custom section, in this case one called "example". (See this gist for my basic example of install code.)
But what I can't seem to figure out is to how then generate a custom dashboard for it via code instead of manually modifying dashboard.config.
Is there any code examples, tutorials, or documentation that might point me in the right direction?
Hi Kyle,
I've done this using package actions for a "native" Umbraco package.
You can check that here : https://github.com/dawoe/umbraco-loadbalancing-dashboard/blob/master/Packaging/Package.xml#L30
If you are also want to provide a nuget package you can find the syntaxt for that here : https://github.com/dawoe/umbraco-loadbalancing-dashboard/blob/master/Packaging/package.nuspec#L24
And here are the transforms of above code example https://github.com/dawoe/umbraco-loadbalancing-dashboard/tree/master/Packaging/nuget-transforms
On a side note. You don't have to create a section using the code in your gist.
You can also create a class that inherits IApplication and has a Application attribute. This will be registered by Umbraco out of the box.
https://bitbucket.org/dawoe/umbukfestival2014/src/1f7a6c03621a873b25cb709ecac43b298dad2a20/Sources/UmbUkFestival2014.Core/Sections/UmbUkFest.cs?at=master&fileviewer=file-view-default
Dave
Dave, thanks for the examples! I think that's going to help me do what I need. :) #h5yr!
Might not be what you're searching for, but my package lets you add dashboards from C#:
https://github.com/abjerner/Skybrud.Umbraco.Dashboard#quick-example
(of course that requires installing another package for something that IMO should be supported in the Umbraco core)
Andres,
Just noticed that your issue 6557 is added to the roadmap for 7.6 (and nested content has moved to 7.7)
is working on a reply...