I'm trying to use code first item creation, but cant get the inheritance working.
[Item(Name = "Paragraph", Description = "Root paragraph, in which all other paragraphs inherit settings from.")] [Category("Example")] [Icon(Dynamicweb.Core.UI.Icons.KnownIcon.Dashboard)] [TitleField("Title")] [AreaRule, StructureRule(StructureContextType.Paragraphs), ChildRule(false)] public class Paragraph : ItemEntry { [Group("General")] public string Title { get; set; } } [Item(Name = "Default Paragraph", Description = "Standard paragraph for all purpose use.")] [Category("Example")] [Icon(Dynamicweb.Core.UI.Icons.KnownIcon.Dashboard)] [TitleField("Title")] [AreaRule, StructureRule(StructureContextType.Paragraphs), ChildRule(false)] [ModuleAttachmentRule(true)] public class DefaultParagraph : Paragraph { [Group("General")] [RichText] public string Content { get; set; } }
This result in two items in the same folder, and DefaultParagraph is not inheriting Paragraph, what am I missing?