Sitecore.FakeDb – code generation with Sitecore.FakeDb.Construct

If you ever tried to write unit tests for your Sitecore solution, you should be aware of Sitecore.FakeDb unit testing framework. Sitecore.FakeDb is great! You can find lots of tutorials and examples right on GitHub Wiki here. The problem I faced is that in real-world scenarios I normally need to mimic the template structure I … Continue reading Sitecore.FakeDb – code generation with Sitecore.FakeDb.Construct

Experience editor. Add all editable items on page to related items publishing

Recently I faced one challenge. A Sitecore page has a number of rendered fields and all of them can be marked as "editable" in Sitecore out of the box. For example, I have a list of items which are being outputted to the page from a rendering which requests Content Search API and gets list … Continue reading Experience editor. Add all editable items on page to related items publishing

Inversion of Control and dependency management with Sitecore configuration factory

Today, when we talk about modern software application development, its quite obvious that using Inversion of Control (IoC) design principle is a must have. Having ability to change dependencies of the component without changing the component itself is very important for any kind of application I think. When you creating a Sitecore website you still … Continue reading Inversion of Control and dependency management with Sitecore configuration factory

Fortis & Sitecore Tutorial 3 – using Sitecore ContentSearch API

Sitecore ContentSearch API is a rather powerful functionality that gives you pretty much unlimited capabilities in retrieving sets of items in your Sitecore installation using Lucene or SOLR search engines which Sitecore currently supports. Using Fortis framework in your Sitecore solution gives you auto-generated model (using TDS or any other way of to generate it) … Continue reading Fortis & Sitecore Tutorial 3 – using Sitecore ContentSearch API

@Html.Sitecore().Rendering(pathOrId) does not apply “VaryBy” settings

This week I have faced with one unexpected issue in Sitecore 8.1. We are declaring few renderings on the layout using the Rendering method of the SitecoreHelper class in Sitecore.Mvc.dll. The issue can be reproduced by setting the "Cacheable" to true and applying the "VaryBy" settings. In result I can see that the "Cacheable" is … Continue reading @Html.Sitecore().Rendering(pathOrId) does not apply “VaryBy” settings