Files
Orchard/src/Orchard.Web/Modules/Orchard.Dashboards/Migrations.cs
Sipke Schoorstra 316c6e3262 Simplifying dashboard management.
This removes the ability to edit multiple dashboards in favor of a simplified way for users to edit the default dashboard.
2015-05-20 01:27:53 +02:00

18 lines
634 B
C#

using Orchard.ContentManagement.MetaData;
using Orchard.Dashboards.Services;
using Orchard.Data.Migration;
namespace Orchard.Dashboards {
public class Migrations : DataMigrationImpl {
public int Create() {
ContentDefinitionManager.AlterTypeDefinition("Dashboard", type => type
.WithPart("CommonPart")
.WithPart("IdentityPart")
.WithPart("TitlePart")
.WithPart("LayoutPart", p => p
.WithSetting("LayoutTypePartSettings.DefaultLayoutData", DefaultDashboardSelector.DefaultLayout)));
return 1;
}
}
}