DEV Community

Discussion on: Extending the UmbracoHelper class in Umbraco v8

Collapse
 
fransdejong profile image
Frans de Jong

I always create a custom viewpage.

The 2 advantages in my opinion are:

  • no messing with static classes so DI is working
  • no confusion about what is Umbraco and what is custom code. The Umbracohelper is the same in every project and the viewpage SiteSettings object contains all the SiteSettings per site.
Collapse
 
timgeyssens profile image
Tim Geyssens

Nice, thanks for sharing!