public int Create() { _contentDefinitionManager.AlterPartDefinition("EmailTemplatePart", builder => builder .WithDisplayName("Email Template") .WithDescription("Assign an email template to the content type") .Attachable()); _contentDefinitionManager.MigratePartSettings <EmailTemplatePart, EmailTemplatePartSettings>(); return(1); }
// Migrate PartSettings. This only needs to run on old content definition schemas. // This code can be removed in a later version. public int UpdateFrom1() { _contentDefinitionManager.MigratePartSettings <ListPart, ListPartSettings>(); return(2); }
public int UpdateFrom2() { _contentDefinitionManager.MigratePartSettings <ProfileGroupPart, ProfileGroupPartSettings>(); return(3); }
// Migrate PartSettings. This only needs to run on old content definition schemas. // This code can be removed in a later version. public int UpdateFrom2() { _contentDefinitionManager.MigratePartSettings <BagPart, BagPartSettings>(); return(3); }
public int UpdateFrom3() { _contentDefinitionManager.MigratePartSettings <SubscriptionLevelPart, SubscriptionLevelPartSettings>(); return(4); }