If I do not specify a model, I get a compilation error.
Namely: 'Umbraco.Core.Models.IPublishedContent' does not contain a definition for the name of the doctype property (e.g. "title") that I am trying to call.
As soon as I specify a model, everything works great - until I try to use it with another doctype.
NewB: Models and Composite Doctypes
Here is an oversimplification of my problem:
Doctypes:
Templates:
Issue: If my master template (sitelayout) begins with:
@inherits UmbracoViewPage< ContentModels.Home > @using ContentModels = Umbraco.Web.PublishedContentModels;
it only works for the home page... What model do I need to reference so that all my pages can use the same master template?
FWIW I am using the AppData ModelsMode
Hey Ault,
On your master template you don't need to pass in a model. For example just:
If I do not specify a model, I get a compilation error.
Namely: 'Umbraco.Core.Models.IPublishedContent' does not contain a definition for the name of the doctype property (e.g. "title") that I am trying to call.
As soon as I specify a model, everything works great - until I try to use it with another doctype.
is working on a reply...