mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00

This removes the ability to edit multiple dashboards in favor of a simplified way for users to edit the default dashboard.
18 lines
634 B
C#
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;
|
|
}
|
|
}
|
|
} |