protected override void Importing(CasePart part, Orchard.ContentManagement.Handlers.ImportContentContext context) { // Don't do anything if the tag is not specified. if (context.Data.Element(part.PartDefinition.Name) == null) { return; } context.ImportAttribute(part.PartDefinition.Name, "Description", description => part.Description = description ); context.ImportAttribute(part.PartDefinition.Name, "PostCount", postCount => part.PostCount = Convert.ToInt32(postCount) ); context.ImportAttribute(part.PartDefinition.Name, "FeedProxyUrl", feedProxyUrl => part.FeedProxyUrl = feedProxyUrl ); }
protected override void Importing(DividerMenuItemPart part, Orchard.ContentManagement.Handlers.ImportContentContext context) { context.ImportAttribute(part.PartDefinition.Name, "ShowDivider", x => part.ShowDivider = bool.Parse(x)); context.ImportAttribute(part.PartDefinition.Name, "ShowHeader", x => part.ShowHeader = bool.Parse(x)); context.ImportAttribute(part.PartDefinition.Name, "Header", x => part.Header = x); }