Last week in the umbraco slack group, one of the members Ronald Barendse shared an interesting tip.
In the web.config of Views folder, you can set the pageBaseType to be Umbraco.Web.Mvc.UmbracoViewPage
This means, in your view you don't have to say it inherits from UmbracoViewPage:
You can just declare the model like this:
You will still be inheriting from UmbracoViewPage, without needing to declare it each time.
Although Ronald doesn't recommend changing this (especially if it's not documented/shared in your team), as it's a non-standard setup and you're more explicit just adding @inherits UmbracoViewPage
Thanks to Ronald for sharing this tip in the slack group.
You can join the Umbraco slack group by visiting umbracians.chat
This post tells you how to solve the error assets file project.assets.json not found in Visual Studi…Read Post
This post gives you some razor code to help you see the values of the IPublishedContent item's prope…Read Post
This post will help you fix the issue where you csv export has corrupt characters when opening it in…Read Post