Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Just starting with UaaS. Since 7.4 (I think) when you create a DocType the template is created as :-
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage<ContentModels.BasePage> @using ContentModels = Umbraco.Web.PublishedContentModels; @{ Layout = null; }
So in Visual Studio the immediate issue is the error "Namespace 'BasePage' doesn't exist".
What's the best way to get rid of this? Does UaaS actually need the ModelsBuilder or is it ok just to switch it off in web.config?
Any advice appreciated.
You need to change UmbracoTemplatePage to UmbracoViewPage. Also, if BasePage is used as a composition, it will be called IBasePage by ModelsBuilder.
UmbracoTemplatePage
UmbracoViewPage
BasePage
IBasePage
Hi Craig,
Do you have BasePage docType in your Umbraco?
You have to create models before using it.
Cheers
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Best Practice for UaaS Visual Studio set up and ModelsBuilder
Just starting with UaaS. Since 7.4 (I think) when you create a DocType the template is created as :-
So in Visual Studio the immediate issue is the error "Namespace 'BasePage' doesn't exist".
What's the best way to get rid of this? Does UaaS actually need the ModelsBuilder or is it ok just to switch it off in web.config?
Any advice appreciated.
You need to change
UmbracoTemplatePage
toUmbracoViewPage
. Also, ifBasePage
is used as a composition, it will be calledIBasePage
by ModelsBuilder.Hi Craig,
Do you have BasePage docType in your Umbraco?
You have to create models before using it.
Cheers
is working on a reply...