Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
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 :
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.
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#:
(of course that requires installing another package for something that IMO should be supported in the Umbraco core)
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...
Write your reply to:
Image will be uploaded when post is submitted