Sitecore Media Library integration with Azure CDN using origin pull
If your Sitecore website is heavy on content from the media library you can offload your Sitecore instances by allowing images to be retrieved from a Content Delivery Network (CDN). If you use...
View ArticleSitecore contact cannot be loaded, code never responds
In Sitecore, it is possible to encounter a situation where the calls identifying or locking a contact never responds, but there is no errors returned. A call to identify:...
View ArticleRequesting Azure API Management URL’s
The Azure API Management is a scalable and secure API gateway/proxy/cache where you can expose your API’s externally and still have secure access. In Azure API Management you create a “Product” which...
View ArticleWebhook Event Receiver with Azure Functions
Microsoft Azure Functions is a solution to run small pieces of code in the cloud. If your code is very small and have only one purpose, an Azure Function could be the cost effective solution. This is...
View ArticleSitecore Scheduled Task – Schedule time format and other quirks
The Sitecore task runner, usually called Scheduled Tasks, is a simple way of executing code with intervals. You configure scheduled tasks in Sitecore, at /sitecore/system/Tasks/Schedules: Scheduled...
View ArticleEdit special field types in Sitecore Experience Editor – Custom Experience...
The Sitecore Experience Editor allows inline editing of simple field types like text and rich text (HTML) field, and a few complex ones like links. But editing checkboxes, lookup values, multiselect...
View Article.NET Session state is not thread safe
When working with the .NET session state you should bear in mind that the HttpContext.Current.Session cannot be transferred to another thread. Imagine that you, from the Global.asax would like to read...
View ArticleC# Using Newtonsoft and dynamic ExpandoObject to convert one Json to another
The scenario where you convert one input Json format to another output Json is not uncommon. Before C# dynamic and ExpandoObject you would serialize the input Json to POCO model classes and use a...
View ArticleSitecore Rule – Personalize based on any field in any facet in your Contact
This Sitecore Personalization Rule was developed by my colleague Martin Rygaard with the purpose of being able to personalize on any field in any facet on a contact. Contact Facet Rule Set Editor STEP...
View ArticleSitecore separate users from CORE database – move membership provider to...
Since Sitecore 6, Sitecore have had the .NET membership tables in the CORE database. And since every instance of Sitecore needs access to the CORE database, it might seem as a good place to store them....
View ArticleSitecore SOLR error: Invalid Date in Date Math String
There seems to be an issue with certain combinations of Sitecore, SOLR and the local machine datetime settings. This is the error: ManagedPoolThread #11 12:20:50 INFO Job started:...
View ArticleSitecore Postbacks not working? Contents not updated on button click? Try...
This is a classic Sitecore blunder – suddenly postbacks or button clicks have no effect, as if the web site no longer are connected to your webforms codebehind or the MVC renderings. And you have not...
View ArticleUsing C# HttpClient() from Sync and Async code
The .NEt 4.5 C# System.Net.Http.HttpClient() is a very nice http client implementation, but can be tricky to use if you (like me) are not a trained asynchronous programming coder. So here is a quick...
View ArticleSitecore: Login to website and how to restrict access to content
The Sitecore security model has not changed substantially since Sitecore 4. And yet I still find myself struggling every time I have to set up a website that require login, or where users require...
View ArticleSitecore replace spaces with dashes in URL’s
In Sitecore, there is an easy of avoiding the %20 signs in your URL’s. To clarify: If you have an item with a space in the name, the space will appear in the URL as a %20 sign. For example, the item...
View ArticleSitecore publish:end and publish:end:remote
In Sitecore, you have several ways of executing code after a publish. The publish:end and publish:end:remote events are the 2 most obvious choices. There is a little confusion as to when in the publish...
View ArticleSitecore Paging SOLR Responses
When querying Sitecore items from the SOLR index, you do not need to get all items in one go. In fact, the default SOLR implementation will stop at 5000 returned items, so for large queries, you need...
View ArticleSitecore 9 Tracker.Current.Session.Identify is replaced with...
In Sitecore 9, Sitecore have decided to change how you identify named users, i.e. how you match a Contact with a user that is logged into your website. The Tracker.Current.Session.Identify method is...
View ArticleIn Sitecore 9, the ProxyDisabler have been retired completely
Sitecore have finally retired the ProxyDisabler in Sitecore 9. Proxy items were the early version of item cloning and were deprecated in Sitecore 6. And now the ProxyDisabler have been removed. There...
View ArticleSo we are doing Sitecore MVP announcements now, are we?
Sitecore MVP 2018 Yes, again Sitecore thought that my rants about contacts, experience editor, SOLR, and other Sitecore related topics, are good enough to be awarded with the Sitecore MVP title. My...
View Article