Hai Marc,
your way is correct in the dashboard section using code vice.I need a configuration sample for the install dashboard using the package.I mean i've a package and i have two custom dashboards in my package.I need to install my two custom dashboards using the package .
Hi Marc Goodson,
Thank you so much. I was fighting with it for the last two days. now it resolved. actually I thought we can use any string as the alias name. now I cleared the alias name. we can use only the inbuilt alias name for this. You are a rock man.
add custom dashboard via package
i have created my umbraco package with two custom dashboards. i used this code.
<Actions> <Action runat="install" alias="addDashboardSection" dashboardAlias="MyDashboardSection"> <section> <areas> <area>content</area> </areas> <tab caption="Dash1"> <control>/App_Plugins/dashboards/SiteDashBoard.html?v=1.0.1</control> </tab> </section> </Action>
<Action runat="install" alias="addSchemaSection" dashboardAlias="MySchemaSection"> <section> <areas> <area>content</area> </areas> <tab caption="Dash2"> <control>/App_Plugins/dashboards/SchemaDashBoard.html?v=1.0.1</control> </tab> </section> </Action> </Actions>
it always take the first dashboard and second one is not showing.how i will show my two dashboards using umbraco package.
Hi Arul
Are you updating the /config/dashboards.config
https://our.umbraco.com/Documentation/Reference/Config/dashboard/index-v7#sample
?
If so I'm not sure you need the
<actions><action
element: the markup of this config files follows this pattern:regards
Marc
Hai Marc, your way is correct in the dashboard section using code vice.I need a configuration sample for the install dashboard using the package.I mean i've a package and i have two custom dashboards in my package.I need to install my two custom dashboards using the package .
ha, sorry Arul totally misread the question...!
Have you tried combining into one action?
eg:
If you have a look here at the implementation:
https://github.com/umbraco/Umbraco-CMS/blob/v7/dev/src/umbraco.cms/businesslogic/Packager/PackageActions/addDashboardSection.cs#L16
I think you can combine all your dashboards into one instruction, which is why only the first may be actioned...
regards
Marc
Hi Marc Goodson, Thank you so much. I was fighting with it for the last two days. now it resolved. actually I thought we can use any string as the alias name. now I cleared the alias name. we can use only the inbuilt alias name for this. You are a rock man.
Cheers, Arul Pushpam Murugan
is working on a reply...