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 will help you fix the issue where you csv export has corrupt characters when opening it in…Read Post
This post shows you how I created a handler to create dynamic header images for my umbraco website u…Read Post
In this post I show you how you can send Slack messages programmatically using C#Read Post