adding an Identity to support import/export, fixes #6725 (#6728)

This commit is contained in:
Kegan Maher
2016-04-11 12:02:16 -07:00
committed by Sébastien Ros
parent 81a767bd26
commit fbd9e873c5

View File

@@ -48,12 +48,13 @@ namespace Orchard.Taxonomies {
.WithPart("TaxonomyNavigationPart")
.WithPart("MenuPart")
.WithPart("CommonPart")
.WithIdentity()
.DisplayedAs("Taxonomy Link")
.WithSetting("Description", "Injects menu items from a Taxonomy")
.WithSetting("Stereotype", "MenuItem")
);
return 4;
return 5;
}
public int UpdateFrom1() {
@@ -77,5 +78,14 @@ namespace Orchard.Taxonomies {
return 4;
}
public int UpdateFrom4() {
ContentDefinitionManager.AlterTypeDefinition("TaxonomyNavigationMenuItem",
cfg => cfg
.WithIdentity()
);
return 5;
}
}
}