This is probably not that difficult and may not relate to Umbraco (maybe it's more of a ASP.NET question).
Basically I have a masterpage (let's call it MPA) with a template. Another masterpage (MPB) with another template has its layout to point at MPA. Inside MPA's template plain HTML goes with a RenderBody. Inside MPB's template there's HTML and another RenderBody to handle MPB's subpages.
Now, with the ModelsBuilder enabled I get this error when trying to load a subpage to MPB:
Cannot bind source content type Umbraco.Web.PublishedContentModels.TypeSubPage to model content type Umbraco.Web.PublishedContentModels.MPB
Seems like the sub document types (that are listed under MPB) have to inherit from the MPB-type in the 'Document Types'. This is most unfortunate because this also makes the subs inherit all properties from MPB document type which is not preferable.
Nested masterpages
Hi there,
This is probably not that difficult and may not relate to Umbraco (maybe it's more of a ASP.NET question).
Basically I have a masterpage (let's call it MPA) with a template. Another masterpage (MPB) with another template has its layout to point at MPA. Inside MPA's template plain HTML goes with a RenderBody. Inside MPB's template there's HTML and another RenderBody to handle MPB's subpages.
Now, with the ModelsBuilder enabled I get this error when trying to load a subpage to MPB:
The MPA-HTML has
and same with MPB
...and the same goes with the subpage template and layout to point at MPB.
I am not entirely sure what the error is telling me and how to fix it.
Anyone?
-p
Seems like the sub document types (that are listed under MPB) have to inherit from the MPB-type in the 'Document Types'. This is most unfortunate because this also makes the subs inherit all properties from MPB document type which is not preferable.
This is what I would call intentionally ugly.
is working on a reply...