menu part

Topics: General
Mar 29, 2011 at 3:24 AM

Why does the definition of a List include the menu part while a Page does not?

 

namespace Orchard.Lists {
    public class Migrations : DataMigrationImpl {
        public int Create() {
            ContentDefinitionManager.AlterTypeDefinition("List", 
                cfg=>cfg
                    .WithPart("CommonPart")
                    .WithPart("RoutePart")
                    .WithPart("ContainerPart")
                    .WithPart("MenuPart")
                    .Creatable());


namespace Orchard.Pages {
    public class Migrations : DataMigrationImpl {
        public int Create() {
            ContentDefinitionManager.AlterTypeDefinition("Page", 
                cfg=>cfg
                .WithPart("CommonPart")
                .WithPart("PublishLaterPart")
                .WithPart("RoutePart")
                .WithPart("BodyPart")
                .Creatable());
Coordinator
Mar 29, 2011 at 7:43 AM

Pages do have the part, it's just in a different migration (look for Navigation on Core)