Recreate content type

Topics: Customizing Orchard
Dec 18, 2011 at 5:28 PM

I have my own custom module called Article. I have delete article contenttype  and reinstalled my module, but its didnt recreate my contentype, How can i recreate my content type

I have created updateform in migration like below

 public int UpdateFrom10()
        {
            ContentDefinitionManager.AlterTypeDefinition("Articles",
            cfg => cfg              
                .WithPart("RoutePart")
                .WithPart("BodyPart")
                .WithPart("ArticlesPart")
                .WithPart("PublishLaterPart")
                .WithPart("UserViewPart")               
               
            );
            return 11;
        }

Coordinator
Jan 6, 2012 at 1:37 AM

And that didn't work? What happened? Did you try to put a breakpoint in the migration to make sure it was getting hit?