Making Single-Page App Work in Sitecore MVC

When you're developing a single-page app in Sitecore you'll most likely have to partially render a page and inject the rendered markup into your SPA. When you find yourself in this situation you might resort to using Devices, or you might use regular expressions. Either way will require you to request the page first, but the … Continue reading Making Single-Page App Work in Sitecore MVC

Get Rid of NULL Sitecore Field Checks

Null-check is a preventive measure to avoid exceptions during run-time, yet having a bunch of it all over your solution makes for a readability horror. Take the code below for example: It doesn't look like a lot of lines but imagine having to parse a bunch of fields throughout your development. Sure you can just … Continue reading Get Rid of NULL Sitecore Field Checks