Skip to content

Commit fe76ead

Browse files
authored
Update understand-and-extend.md
Reworded inheritance logic to reflect the logic being removed in v14.
1 parent bc71971 commit fe76ead

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

15/umbraco-cms/reference/templating/modelsbuilder/understand-and-extend.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,13 @@ public partial class TextPage : PublishedContentModel, IMetaInfo
110110

111111
### Inheritance
112112

113-
In addition to composition, content types can have a parent-child relationship. In the Umbraco backoffice, a content type appears underneath its parent.
113+
In addition to composition, earlier versions of Umbraco allowed content types to have a parent-child relationship. In the Umbraco backoffice, a content type appears underneath its parent.
114114

115-
By convention, a content type is always **composed of its parent** and therefore inherits its properties. However, the parent content type is treated differently, and the child content type *directly inherits* (as in C# inheritance) from the parent class.
115+
{% hint style="info" %}
116+
The option to add child content types in the backoffice was removed in v14, but migrated sites may still have content types with this relationship. New content types can inherit through Composition.
117+
{% endhint %}
118+
119+
This type of inheritance is treated differently since the content type is always **composed of its parent**, so the child content type *directly inherits* (as in C# inheritance) from the parent class.
116120

117121
If `AboutPage` is a child of TextPage, its generated model would inherit directly from `TextPage`:
118122

0 commit comments

Comments
 (0)