Working with Media Items from code
The Media Library in Sitecore is primarily used for images and other editor-driven files, such as pdf documents etc. Media items are basically just regular items, but with a blob field that can store...
View ArticleAwarded Sitecore MVP 2021
Thank you Sitecore for awarding me “Most Valuable Professional” (MVP) again! Ten hears in a row! The Sitecore MVP Award celebrates the most active Sitecore community members from around the world who...
View ArticleTreeList(Ex) field type with multiple roots
The built-in Sitecore TreeList and TreeListEx field types have quite many options and can be configured to become very user friendly for authors. However, I’ve been missing a few pieces to make it even...
View ArticleEditing Sitecore item from code: revision and publishing considerations
I’ve noticed some people are struggling with updating items from code and making it publish properly, with Sitecore Publish Service (SPS) in particular. So I thought I’d just share how I usually deal...
View ArticleField type validator for links
Today I found a missing piece in the default item tree of a Sitecore instance. I did the finding on 9.3, so this may not apply to other Sitecore versions. Background There are basically a few different...
View ArticleNo dots in Sitecore commands
Creating Sitecore commands is a powerful way to add additional functionality into a Sitecore solution. Commands are typically triggered by a Sitecore editor from the UI. It can be a ribbon button, a...
View ArticleSitecore Content Editor depends on the Referer http header
My today’s Sitecore discovery was that the Sitecore Content Editor have code that is dependent on what’s sent in the Referer header. (Yes, it’s incorrectly spelled in the HTTP standard.) TL;DR: Set...
View ArticleAn important breaking change in Sitecore Item DisplayName
Sitecore has been using the unversioned standard field “__Display name” along with the built-in “Name” for as long as I can remember. Basically, the item Name is similar to a shared field and is...
View ArticleAwarded Sitecore MVP 2021
Thank you Sitecore for awarding me “Most Valuable Professional” (MVP) again! Nine years in a row. Wow! The Sitecore MVP Award celebrates the most active Sitecore community members from around the world...
View ArticleWhy TDS may want to sync non-existing item versions
I recently ran into a strange issue where I noticed TDS wanted to sync a lot of item versions that didn’t exist. It took me a while before I nailed what was actually causing this. In the example below,...
View ArticleSitecore “Switchers”
Sitecore has tons of “Switchers” that are pretty useful in many scenarios. You’re probably familiar with a few of them, such as EditContext, SecurityDisabler and LanguageSwitcher. Others are less known...
View ArticleImproved Sitecore Links Database provider
I have a somewhat love and hate relationship to the Sitecore Links Database. It’s really useful in some scenarios, especially in scenarios such as integrations, batch operations etc, where a Solr index...
View ArticleGenerating predictive Sitecore ID’s
Sitecore ID’s, or Guids, are many times great as content can be created in different places and be moved between databases without facing the risk of colliding id’s. When integrating stuff into...
View ArticleDealing with Solr Managed Schema through Sitecore config files
When working with Content Search and Solr in Sitecore, it’s quite common that a field needs to be managed in both Sitecore and Solr. It can for example be a computed field or a basic field where you...
View ArticleSitecore Azure Blob Storage module findings
A few years ago, I wrote about storing Sitecore binaries in an external blob storage service instead of having them in the database. You can read more about it here and the code is available on...
View ArticlePrevent Sitecore editors playing around with rendering cache options
Caching of renderings is a vital part of good performing Sitecore websites. Getting all the settings right aren’t trivial and it’s really only the developers of components that knows the details about...
View ArticleFaster indexing in Sitecore
Sitecore indexes is very powerful for getting various items fast, especially when they are located in various places. There are also some pitfalls that one needs to be aware of. This post covers...
View ArticleInstalling Content Hub CMP connector to Sitecore CM having Publish Service...
There is a dll version conflict for Polly.dll between Sitecore CMP connector and Sitecore Publish Service 4.1.0. The Publishing Service Module comes with Polly.dll version 5.9.0 and the Sitecore...
View ArticleClean up Sitecore database and avoid corrupt published content
We’ve discovered a rare issue in Sitecore Publish Service (SPS) where it may publish incorrect content to some fields. Even though I think SPS does this wrong, the root cause was inconsistent data in...
View ArticleImproving Sitecore code quality with ReSharper External Annotations
I guess most of us Sitecore developers are familiar with the JetBrains ReSharper plugin for Visual Studio. The tool actually made me accept moving from the Java/IntelliJ IDEA world to the .Net/Visual...
View Article