I'm new with mvc so reading a few tutorials around.
I created a new Visual Studio project (2015) and installed Umbraco 7.5., ran the setup wizard and configured the project successfully.
I want to create my first master page, so instead of using the browser and adding into Templates I instead expanded the views folder in VS2015 and was presented with
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
Can I delete this and replace it with html markup or is there some syntax I need to learn to add standard html into this area?
Create masterpage
I'm new with mvc so reading a few tutorials around.
I created a new Visual Studio project (2015) and installed Umbraco 7.5., ran the setup wizard and configured the project successfully.
I want to create my first master page, so instead of using the browser and adding into Templates I instead expanded the views folder in VS2015 and was presented with
@inherits Umbraco.Web.Mvc.UmbracoTemplatePage
Can I delete this and replace it with html markup or is there some syntax I need to learn to add standard html into this area?
Sorry new with this, so any guidance is great
Hi Bob,
You can read up on how to use layout pages from the MVC documentation. Umbraco use normal MVC.
https://docs.microsoft.com/en-us/aspnet/core/mvc/views/layout
In short:
Create _ViewStart.cshtml in ~/Views that tells all underlaying views to use that code. Add code
Create the Master.cshtml in ~/Views/Layouts/
Follow that MVC guideline on how to populate the master.cshtml.
Hope that helps. Martin
is working on a reply...