Skip to content

Instantly share code, notes, and snippets.

View ChesterCampbellAM's full-sized avatar

ChesterCampbellAM

View GitHub Profile
@ChesterCampbellAM
ChesterCampbellAM / ANestedContentUsePattern.txt
Last active October 24, 2018 16:44
Pattern for binding Nested Content content to strongly-typed models (via Models Builder) in Umbraco CMS v7.
This pattern has a couple of assumptions built in:
1) All nested content partial views will be saved in the directory: /Views/Partials/NestedContent
2) All nested content partials views will be named using the alias of the Document Type the
nested content is based on, but starting with an underscore. For example: Document Type
"Full Width Text Component" (alias = fullWidthTextComponent) should have a partial view
named "_FullWidthTextComponent.cshtml".
3) All Models Builder generated data models are namespaced to "AM.Models".