mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
#19023: Making WidgetPart attachable
Work Item: 19023 --HG-- branch : 1.x
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Orchard.ContentManagement;
|
||||
using Orchard.ContentManagement.MetaData;
|
||||
using Orchard.Core.Contents.Extensions;
|
||||
using Orchard.Data.Migration;
|
||||
using Orchard.Widgets.Models;
|
||||
|
||||
@@ -78,5 +79,12 @@ namespace Orchard.Widgets {
|
||||
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom3()
|
||||
{
|
||||
ContentDefinitionManager.AlterPartDefinition("WidgetPart", builder => builder.Attachable());
|
||||
|
||||
return 4;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user