Vince Scordino Team : Web Development Tags : Technology Web Development Umbraco

Umbraco 7.2 Compositions

Vince Scordino Team : Web Development Tags : Technology Web Development Umbraco

With the latest release of Umbraco 7.2, we’re given a new feature called ‘Compositions’ for document types. In previous versions of Umbraco, we were limited to nesting document types which would inherit properties from their parents. This sometimes caused issues in future website updates where unnecessary property inheritance would occur.

With compositions, it allows you to build document types with less restrictions by copying fields from already created document types. Say you created a document type for SEO fields. This document type would not be destined to have a template and would only be used for content shared by other document types. Here you could include the SEO composition (ie: News Item) and it would immediately inherit the properties from the SEO document type:

One thing to note is you can only select root document type compositions. The only downfall I’ve found so far is that when these compositions are inherited, they also inherit the property tabs. This isn't the issue, however you have to be creative with how you order and name your labels within those tabs in order to make sense on the master document type.A featured I’d love to see is to be able to select compositions at a document type property level when constructing a document type. This would allow you to order multiple compositions and target properties far more accurately.