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
Will share the alternative implementation of Wildcards module of Adam Conn's original idea. The problem is that when it comes to Sitecore 7 or later this module appears not to be working out of the box due to changed Sitecore Rules Engine. And to be honest, working with rules may be a bit confusing and I … Continue reading Wildcards Module for Sitecore 7+ using Content Search API
Let's continue... Today will demonstrate a simple and convenient way of implementing Sitecore renderings which Fortis provides out of the box. The latest Fortis version is built to support Sitecore MVC rendering types. View Renderings Controller Renderings You are more than welcome to organize your razor views the usual way, but in the demo solution … Continue reading Fortis & Sitecore Tutorial 2 – Renderings
I feel like I have to do this. I am going to create set of tutorials about using Fortis framework together with Sitecore. Will walk you through how to create a site using it and show how Fortis makes developers life easier. I have suggested several people to try using it but they complained about … Continue reading Fortis & Sitecore Tutorial 1 – Setting up.
I know, I am being annoying about this, but today I'm gonna share more tests. In order to keep this constructive I will attach code that I have been using for my measurements. So I created a solution which you can find here https://github.com/vhil/fortis-vs-glass-testground. It uses same sitecore instance and both Glass and Fortis were installed there. … Continue reading Fortis vs Glass.Mapper (part 3)
Will add more performance test results today between Fortis, Glass.Mapper and plain Sitecore API for most common operations with Sitecore items. Will probably start from results and then explain them below. Tests were executed on the same Sitecore master database on 100000 items of same "Content Page" template. Get Item - here I have been using … Continue reading Fortis vs Glass.Mapper (part 2)
Today, if I start googling on how to map Sitecore temlates to .net classes I will definitely find Glass.Mapper framework at the very top of the search. It has become a standard now - if you are planning a big Sitecore implementation you definitely need to use Glass.Mapper. But is that the best tool for solving these … Continue reading Fortis vs Glass.Mapper (part 1)
What if your rendering throws an exception? Default Sitecore installation will just use ASP.NET behavior and redirect you to the error page (yellowscreen or custom application error page whatever you have configured) Do you like that? Sitecore page is a set of separate renderings and why would I see the error page if one of … Continue reading Sitecore rendering exception handling