Kyle Kingsbury A Sitecore web development blog


Reaching the max pages viewed threshold for an xDb Session


In my current project, I came across an odd issue for a component that was developed using interactions captured by xDb where xDb would completely stop tracking after what appeared to be at arbitrary intervals. To some testers, xDb would stop tracking after 9 page views, others it was 10-12 page views. What I didn’t know at the time was that Sitecore xDb comes configured with a...

Mapping integers values to boolean values within Solr with the ContentSearch API


If you work with Sitecore and search driven experiences enough, you will undoubtedly run into a scenario where you need to map a complex type from your codebase to a single entry into your index.  Luckily for us, Sitecore has already built the abstractions and the implementation into the Content Search API in order to handle mapping complex types into single fields within the index, the...

Targets dropdown not populating within the Link Dialog


Are you missing your link targets within the Speak UI link selection dialog, InsertLinkViaTreeDialog? If you have searched the internet and still haven’t come across an answer that worked, you have come to the right place. Missing Targets Dropdown Solution When the dialog first loads, it pulls the TargetsSearchPanelConfig provided within the Speak Layout. After the dialog has the...

Configuring Sitecore’s SolrProvider to use SolrPostConnection


By default, Sitecore’s ContentSearch Solr implementation is configured to send all requests to Solr using a HTTP GET. For most implementations, this is fine and shouldn’t need to be changed. However, if you are doing very complex queries you’ll quickly run into IIS’s web server query string and URL length limits. You have two options at this point, configure the limits...

Overriding the Sitecore Item Resolver? Watch out for the mvc.getPageItem pipeline!


Something that has been a bit annoying to me when developing custom ItemResolver’s for Sitecore MVC is that you cannot simply add logic into the httpRequestBegin pipeline to add your custom logic. No, that would be too simple right? If you are using Sitecore MVC than not only must you do your Item Resolution logic within the httpRequestBegin, you must also override or rearrange the mvc...

Handling Unhandled Exceptions within Sitecore Renderings


Even the best developers cannot stop the inevitable from happening. Whether it be a mistyped variable name within a view, an invalid content type set, or the dreaded null reference exception; errors like these and others creep up from time to time that can in some cases, bring down your Sitecore implementation. Nothing hits a developer harder than knowing their code took down the site, but...

Results from upgrading to Project Dilithium and Unicorn 4


If you haven’t been following along with the community, the serialization framework that has quickly become the standard for Sitecore received an upgrade this past week. I don’t think the timing of this release could have come at a better time, as i’ve been experiencing really poor performance with synching Unicorn with an underpowered environment. With Unicorn 4 being touted as...

Unit-testing devices and layouts with Sitecore.FakeDb


After writing a few extension methods that checked whether a Sitecore Item had a layout for the default device or any device, I wondered if I could use the Sitecore.FakeDb library to unit-test these extension methods and provide some much needed code coverage for a project i’m working on. As most people do, I quickly did a few google searches and I was shocked, I couldn’t find any...

Deliver faster with the Fluent ContentSearch Library


With the Sitecore 7 release, Sitecore introduced the ContentSearch API to improve developer’s lives by providing a familiar LINQ abstraction on top of Lucene and SOLR. This allowed developers to develop against a single API that could work with any search provider, all while using LINQ’s very, very likable API. While the ContentSearch API provides the abstraction over the search...

Kyle Kingsbury A Sitecore web development blog
Sitecore MVP 2019 - Technology

Recent Posts