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

committed by
Nicholas Mayne

parent
e0c4c87a77
commit
594ba12303
@@ -13,10 +13,11 @@ namespace Orchard.Search {
|
||||
.WithPart("SearchFormPart")
|
||||
.WithPart("CommonPart")
|
||||
.WithPart("WidgetPart")
|
||||
.WithPart("IdentityPart")
|
||||
.WithSetting("Stereotype", "Widget")
|
||||
);
|
||||
|
||||
return 2;
|
||||
return 3;
|
||||
}
|
||||
|
||||
public int UpdateFrom1() {
|
||||
@@ -26,6 +27,13 @@ namespace Orchard.Search {
|
||||
|
||||
return 2;
|
||||
}
|
||||
|
||||
public int UpdateFrom2() {
|
||||
ContentDefinitionManager.AlterTypeDefinition("SearchForm",
|
||||
cfg => cfg.WithPart("IdentityPart"));
|
||||
|
||||
return 3;
|
||||
}
|
||||
}
|
||||
|
||||
[OrchardFeature("Orchard.Search.MediaLibrary")]
|
||||
|
Reference in New Issue
Block a user