Sitecore Display Name not Shown
My display names went missing from Sitecore. But only in my development environment, not the test or production environment. Some googling lead me to this article from Stackexchange, but my database...
View ArticleC# Mask email address for GDPR reasons
UPDATE 2018-08-10: See this post SHA256 hashing email addresses for GDPR reasons for an even better masking approcah. Thanks to Inspector Cluedget for the tip. This is a C# extension method that will...
View ArticleSHA256 hashing email addresses for GDPR reasons
This is a followup on the previous post C# Mask email address for GDPR reasons, where user Inspector Cluedget pointed out that masking (replacing characters with *) an email address in the log file is...
View ArticleSitecore from Rendering to Experience Editor
In Sitecore, how do you set up a template and a rendering that works in the Experience editor? Here is the checklist: STEP 1: CREATE A TEMPLATE Create the template. For each field, use the “Title”...
View ArticleSitecore find unused templates
Long lived Sitecore projects tend to build up dead templates and renderings as design, features and functions evolve. Finding those unused templates is not always just a matter of checking the Sitecore...
View ArticleSitecore find Unused Sublayouts
Long lived Sitecore solutions tend to build up unused renderings and sublayouts as design, features and functions evolve. Finding those unused sublayouts it not just a matter of checking the Sitecore...
View ArticleUsing Notepad++ to mask email address for GDPR reasons
With the new GDPR rules enforced in Europe, shipping log files containing personal information (including email addresses) to 3rd parties are a no-go. Unless you have a signed controller/processor...
View ArticleSitecore 8.2 changed maxInvalidPasswordAttempts from 256 to 5
I noticed that some of my users got locked out of my solution after I upgraded from Sitecore 8.0 to Sitecore 9.0. That’s because Sitecore have decided to change the default value of the membership...
View ArticleSitecore The “placeholder” placeholder was not rendered in the “page” item
Do you get this error in Sitecore 9? 9952 2018:10:23 12:56:42 WARN The “xxxxx” placeholder was not rendered in the “xxxxx” item ({00000000-0000-0000-0000-000000000000}) rendering context. Possible...
View ArticleSitecore 9 Dependency Injection – Extend the Sitecore Logging
With the extended use of Dependency Injection (DI) in Sitecore 9, you have yet another tool to extend the Sitecore functionality. With DI you can basically replace or extend standard Sitecore...
View ArticleSolr delete document using UI and querystring
How do you delete a document from Solr? You can use query string parameters to do the delete:...
View ArticleSitecore 9 Caching – Sitecore.Caching.CacheManager.GetAllCaches() changed...
With the increased use of dependency injection, in Sitecore, some classes do no longer return concrete classes, but interfaces instead. You therefore need to change your code, if you use the...
View ArticleSitecore check access and roles programatically
The Sitecore security model have changed over time, but the general API to check security access and roles have been stable for many many years. CHECK IF USER HAS ACCESS TO AN ITEM: To check if a user...
View Articlec# Async fire and forget
Often in application development you want a process to call another thread and continue the process flow, without waiting for a response from the called thread. This pattern is called the “fire and...
View ArticleAzure Application Insights – Multiple services from same server
This trick enables you to have multiple services from the same server log to the same Application Insights instance, and at the same time distinguish between each service. Application Insights...
View ArticleSitecore Security: Roles in Roles – What it is and how it works
The Sitecore Roles-In-Roles is an extension to the basic authorization that have been around ever since Sitecore 5. WHAT IS ROLES-IN-ROLES? Roles-In-Roles allows you to have nested roles, so when you...
View ArticleSQL Cannot resolve the collation conflict between “xxx” and “xxx” in the...
When joining 2 tables from different databases, the following error might occur: Cannot resolve the collation conflict between “SQL_Latin1_General_CP1_CI_AS” and “Danish_Norwegian_CI_AS” in the equal...
View ArticleUsing emojis in Sitecore
Because people younger than me stopped communicating with words and instead adopted a modern version of hieroglyphs, emojis have become a part of every modern OS and Browser, and have even been adopted...
View ArticleImprove Sitecore Experience Editor Performance by Disabling Number of Locked...
The Sitecore Experience Editor is not the fastest tool in the shed, but you can improve the performance slightly by disabling the counter on the “My items” button that shows how many items you...
View ArticleSitecore create packages using PowerShell
The Sitecore PowerShell Extensions is a very powerful module what allows you to automate a lot of the trivial Sitecore tasks. The Export-Package command will create a Sitecore package. This script will...
View Article